USB: fix usbled disconnect read race #2
commited206ec9ab398e1c3756ff0eb9507db1d009e65f
authorOliver Neukum <oliver@neukum.org>
Sun, 28 Oct 2007 07:21:59 +0000 (28 08:21 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 28 Nov 2007 21:58:33 +0000 (28 13:58 -0800)
treed13e50319c8a0f870ffe04b561e7688ea44deb1a
parent7ced46c3ad1dfaaabf9ec6c98cbb0a48e080fb11
USB: fix usbled disconnect read race #2

usbled has a race where show methods for attributes in sysfs can
follow a NULL pointer during disconnect. The correct ordering fixes
it.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usbled.c