]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: Fix card refcount unbalance
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Nov 2012 13:36:18 +0000 (14:36 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:47:11 +0000 (16:47 +0000)
commit80b36c5e0e38ce18815c392a1fcbb16cd1480853
tree4c85c1b0fb04fe6543a9de315eb128510445db56
parent3eda424af1fc17bf94b019eced3c6c5b7134556d
ALSA: Fix card refcount unbalance

commit 8bb4d9ce08b0a92ca174e41d92c180328f86173f upstream.

There are uncovered cases whether the card refcount introduced by the
commit a0830dbd isn't properly increased or decreased:
- OSS PCM and mixer success paths
- When lookup function gets NULL

This patch fixes these places.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=50251

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/core/oss/mixer_oss.c
sound/core/oss/pcm_oss.c
sound/core/pcm_native.c
sound/core/sound.c
sound/core/sound_oss.c