mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
Commit e534c5b831 (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]>