]> git.baikalelectronics.ru Git - kernel.git/commit
usb: wusbcore: do device lookup while holding the hc mutex
authorThomas Pugliese <thomas.pugliese@gmail.com>
Mon, 2 Dec 2013 21:39:44 +0000 (15:39 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Dec 2013 23:21:04 +0000 (15:21 -0800)
commiteb8d4a25176ab5ee41ecf70c6ec9b67745765b8d
tree12461b6f78e9bbb74b4e92060891950d3d27b328
parent8fd05f314eb94e081253d10a2f504014aee97321
usb: wusbcore: do device lookup while holding the hc mutex

This patch modifies the device notification handler to not look up the
wusb_dev object before it calls the lower-level handler routines since
the wusbhc mutex is not held when calling those routines and the device
could go away in the meantime.  Instead, let the individual notification
handlers get the device ptr if they need to after they have taken the
mutex.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/devconnect.c