coverity fix in alsa-libs
A message that is not in the archive (sent off-list or not yet received): [email protected]
At Thu, 18 Sep 2014 11:24:41 +0000 (GMT),
Quoted 10 lines · Renu Tyagi
Hi,
Bug Type : Fixing Double free caused by callingsnd_hctl_close(hctl)twice as it is called insidesnd_mixer_attach_hctlalso File changed :mixer.c
PFA patch4
-------------------------------------------------------
From685fba24eeb639e151f126026130cc631741bcadMon Sep 17 00:00:00 2001
From: renu tyagi <[email protected]>
Date: Thu, 18 Sep 2014 16:26:45 +0530
Subject: [PATCH 4/8] [mixer] : Fixing Double free caused by callingsnd_hctl_close(hctl)twice as it is called insidesnd_mixer_attach_hctlalso
Please avoid too long subject line. Keep it concise, and put rather the detailed description in the patch changelog text.
Takashi
Quoted 28 lines
Signed-off-by renu tyagi <[email protected]>--- src/mixer/mixer.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)src/mixer/mixer.c +1
-4@@ -204,10 +204,8 @@ int snd_mixer_attach(snd_mixer_t *mixer, const char *name)if (err <0 )return err; err =snd_mixer_attach_hctl (mixer, hctl); -if (err <0 ) { -snd_hctl_close (hctl); +if (err <0 )return err; - }return 0 ; } --1.7.1
Thanks
Renu Tyagi