diff options
| author | Johan Hovold <[email protected]> | 2019-09-19 10:30:37 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-04 14:01:56 +0200 |
| commit | 33a7813219f208f4952ece60ee255fd983272dec (patch) | |
| tree | 4226fb730ccbc08aab137e3e50dde5ad4ecf99ba /net/lapb/lapb_iface.c | |
| parent | 1d427be4a39defadda6dd8f4659bc17f7591740f (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 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions