ALSA: Fix card refcount unbalance
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 Cc: <stable@vger.kernel.org> Signed-off-by:Takashi Iwai <tiwai@suse.de>
Showing
- sound/core/oss/mixer_oss.c 1 addition, 0 deletionssound/core/oss/mixer_oss.c
- sound/core/oss/pcm_oss.c 1 addition, 0 deletionssound/core/oss/pcm_oss.c
- sound/core/pcm_native.c 4 additions, 2 deletionssound/core/pcm_native.c
- sound/core/sound.c 1 addition, 1 deletionsound/core/sound.c
- sound/core/sound_oss.c 1 addition, 1 deletionsound/core/sound_oss.c
Loading
Please register or sign in to comment