diff options
author | Oliver Neukum <oliver@neukum.org> | 2008-01-22 15:54:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 14:35:04 -0800 |
commit | 9e3b1d8e3d5d135ac7be43f6710b7a67b569c292 (patch) | |
tree | d49c28ab6eb379e9cdc7cd9d28110c0967790486 /drivers/usb/serial/mct_u232.c | |
parent | 0b3f5fe673d4626ea91816ca9c486b43b39a2fd1 (diff) |
USB: stop abuse of intfdata in cypress_m8
this driver uses usb_get_intfdata() == NULL as a test for disconnect().
You must not do that as this races with probe(). By the time you test
your erstwhile interface may already be somebody else's interface.
This fixes the close() method of cypress_m8 to use the recently introduced
flag and use locking against disconnect() where required in close().
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/mct_u232.c')
0 files changed, 0 insertions, 0 deletions