mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
The fix for deadlock in PM in commit [1ee23fe07e: ALSA: usb-audio: Fix deadlocks at resuming] introduced a new check of in_pm flag. However, the brainless patch author evaluated it in a wrong way (logical AND instead of logical OR), thus usb_autopm_get_interface() is wrongly called at probing, leading to unbalance of runtime PM refcount. This patch fixes it by correcting the logic. Reported-by: Hans Yang <[email protected]> Fixes:1ee23fe07e('ALSA: usb-audio: Fix deadlocks at resuming') Cc: <[email protected]> [v3.15+] Signed-off-by: Takashi Iwai <[email protected]>