summaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore/wusbhc.h
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-12-02 15:39:44 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-02 15:21:04 -0800
commit6161ae5f1f371e8ff52306d9a1893f5dec6f60a4 (patch)
tree12461b6f78e9bbb74b4e92060891950d3d27b328 /drivers/usb/wusbcore/wusbhc.h
parentf4042c068ae53625e4a9f39543c2693d07a4e14c (diff)
downloadop-kernel-dev-6161ae5f1f371e8ff52306d9a1893f5dec6f60a4.zip
op-kernel-dev-6161ae5f1f371e8ff52306d9a1893f5dec6f60a4.tar.gz
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>
Diffstat (limited to 'drivers/usb/wusbcore/wusbhc.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud