diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2013-12-03 01:39:44 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 03:21:04 +0400 |
commit | 6161ae5f1f371e8ff52306d9a1893f5dec6f60a4 (patch) | |
tree | 12461b6f78e9bbb74b4e92060891950d3d27b328 /include/linux/usb | |
parent | f4042c068ae53625e4a9f39543c2693d07a4e14c (diff) | |
download | linux-6161ae5f1f371e8ff52306d9a1893f5dec6f60a4.tar.xz |
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 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions