aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2019-09-19 10:30:37 +0200
committerGreg Kroah-Hartman <[email protected]>2019-10-04 14:01:56 +0200
commit33a7813219f208f4952ece60ee255fd983272dec (patch)
tree4226fb730ccbc08aab137e3e50dde5ad4ecf99ba /drivers/usb/cdns3/cdns3-debug.h
parent1d427be4a39defadda6dd8f4659bc17f7591740f (diff)
USB: legousbtower: fix deadlock on disconnect
Fix a potential deadlock if disconnect races with open. Since commit d4ead16f50f9 ("USB: prevent char device open/deregister race") core holds an rw-semaphore while open is called and when releasing the minor number during deregistration. This can lead to an ABBA deadlock if a driver takes a lock in open which it also holds during deregistration. This effectively reverts commit 78663ecc344b ("USB: disconnect open race in legousbtower") which needlessly introduced this issue after a generic fix for this race had been added to core by commit d4ead16f50f9 ("USB: prevent char device open/deregister race"). Fixes: 78663ecc344b ("USB: disconnect open race in legousbtower") Cc: stable <[email protected]> # 2.6.24 Reported-by: [email protected] Tested-by: [email protected] Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions