• Takashi Iwai's avatar
    ALSA: usb-audio: Fix runtime PM unbalance · 9003ebb1
    Takashi Iwai authored
    The fix for deadlock in PM in commit [1ee23fe0: 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: default avatarHans Yang <hansy@nvidia.com>
    Fixes: 1ee23fe0 ('ALSA: usb-audio: Fix deadlocks at resuming')
    Cc: <stable@vger.kernel.org> [v3.15+]
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    9003ebb1
card.c 20.2 KB