]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Fix card refcount unbalance
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Nov 2012 13:36:18 +0000 (14:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Nov 2012 13:36:18 +0000 (14:36 +0100)
commita57d9b15a436db71a9af7815158b78822bce446e
treeed2d1ed4e401736de2cc67f8660d43b156d3a0b4
parent93a71db62c759be761a5bc70eb4304ac52cf8e21
ALSA: Fix card refcount unbalance

There are uncovered cases whether the card refcount introduced by the
commit 43d09bdd 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

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
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