diff options
author | Oliver Neukum <oliver@neukum.org> | 2008-01-22 09:54:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 17:35:04 -0500 |
commit | 9e3b1d8e3d5d135ac7be43f6710b7a67b569c292 (patch) | |
tree | d49c28ab6eb379e9cdc7cd9d28110c0967790486 /drivers/usb/serial/generic.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/generic.c')
0 files changed, 0 insertions, 0 deletions