]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix runtime PM unbalance
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Aug 2015 05:20:14 +0000 (07:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Aug 2015 12:57:51 +0000 (14:57 +0200)
commitd6904344eb9236f93463934350ff88b4ea13ffac
tree96b0d4793235149b47aad7a34dc853cc39e57d67
parentafddfec163810ad92d28ca2c6d3249c57f6accfa
ALSA: usb-audio: Fix runtime PM unbalance

The fix for deadlock in PM in commit [32a5acce276e: 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 <hansy@nvidia.com>
Fixes: 32a5acce276e ('ALSA: usb-audio: Fix deadlocks at resuming')
Cc: <stable@vger.kernel.org> [v3.15+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c