commit | 26c71a79cade5ccad80e0752cd82f3518df48fb3 | [log] [tgz] |
---|---|---|
author | Ming Lei <tom.leiming@gmail.com> | Fri Dec 16 22:20:01 2011 +0800 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Jan 04 15:52:41 2012 -0800 |
tree | 965a339ad5ef6a02635455394525e37141b86fef | |
parent | e78832cdca2ddd23c15abaed642cad1a39b3e122 [diff] |
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>