]> err.no Git - linux-2.6/commit
USB: fix read vs. disconnect race in cytherm driver
authorOliver Neukum <oliver@neukum.org>
Tue, 23 Oct 2007 10:26:41 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Oct 2007 19:18:44 +0000 (12:18 -0700)
commitd718d2b17822bb92708204cb1a9175e512520261
tree07db96751e993ceba8bed366458115d2c1ec6773
parent54d2bc068fd21bcb096660938bce7c7265613a24
USB: fix read vs. disconnect race in cytherm driver

the disconnect method of this driver set intfdata to NULL before
removing attribute files. The attributes' read methods will happily
follow the NULL pointer. Here's the correct ordering.

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