diff options
author | Ming Lei <tom.leiming@gmail.com> | 2011-12-16 15:20:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-05 00:52:41 +0100 |
commit | 26c71a79cade5ccad80e0752cd82f3518df48fb3 (patch) | |
tree | 965a339ad5ef6a02635455394525e37141b86fef /drivers/usb/Makefile | |
parent | USB: remove dead code from suspend/resume path (diff) | |
download | linux-26c71a79cade5ccad80e0752cd82f3518df48fb3.tar.xz linux-26c71a79cade5ccad80e0752cd82f3518df48fb3.zip |
USB: usb-skeleton.c: fix open/disconnect race
If usb device is disconnected between usb_get_intfdata()
and kref_get() in skel_open(), kref_get may access a freed
object.
Also check if device is disconnected in ->open.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/Makefile')
0 files changed, 0 insertions, 0 deletions