diff options
author | Alan Stern <[email protected]> | 2011-07-06 17:03:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2011-07-07 13:29:33 -0700 |
commit | ca5c485f55d326d9a23e4badd05890148aa53f74 (patch) | |
tree | 8dd87458cf563ec1537de3733fea52bf8f403415 /net/lapb/lapb_timer.c | |
parent | e534c5b831c8b8e9f5edee5c8a37753c808b80dc (diff) |
USB: additional regression fix for device removal
Commit e534c5b831c8b8e9f5edee5c8a37753c808b80dc (USB: fix regression
occurring during device removal) didn't go far enough. It failed to
take into account that when a driver claims multiple interfaces, it may
release them all at the same time. As a result, some interfaces can
get released before they are unregistered, and we deadlock trying to
acquire the bandwidth_mutex that we already own.
This patch (asl478) handles this case by setting the "unregistering"
flag on all the interfaces before removing any of them.
Signed-off-by: Alan Stern <[email protected]>
Cc: stable <[email protected]>
Tested-by: Éric Piel <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions