diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-08-19 07:20:14 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-08-19 14:57:51 +0200 |
commit | 9003ebb13f61e8c78a641e0dda7775183ada0625 (patch) | |
tree | 96b0d4793235149b47aad7a34dc853cc39e57d67 /samples | |
parent | 7ccb0a9917a511de1d5f92980f26885484d9a914 (diff) | |
download | linux-9003ebb13f61e8c78a641e0dda7775183ada0625.tar.gz linux-9003ebb13f61e8c78a641e0dda7775183ada0625.tar.bz2 linux-9003ebb13f61e8c78a641e0dda7775183ada0625.zip |
ALSA: usb-audio: Fix runtime PM unbalance
The fix for deadlock in PM in commit [1ee23fe07ee8: 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: 1ee23fe07ee8 ('ALSA: usb-audio: Fix deadlocks at resuming')
Cc: <stable@vger.kernel.org> [v3.15+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions