summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/ch9.h
diff options
context:
space:
mode:
authorMing Lei2011-12-16 15:20:01 +0100
committerGreg Kroah-Hartman2012-01-05 00:52:41 +0100
commit26c71a79cade5ccad80e0752cd82f3518df48fb3 (patch)
tree965a339ad5ef6a02635455394525e37141b86fef /include/linux/usb/ch9.h
parentUSB: remove dead code from suspend/resume path (diff)
downloadkernel-qcow2-linux-26c71a79cade5ccad80e0752cd82f3518df48fb3.tar.gz
kernel-qcow2-linux-26c71a79cade5ccad80e0752cd82f3518df48fb3.tar.xz
kernel-qcow2-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 'include/linux/usb/ch9.h')
0 files changed, 0 insertions, 0 deletions