android_kernel_google_msm/sound/pci
Jesper Juhl 7d7eb9ea31 ALSA: hda/realtek - Fix mem leak (and rid us of trailing whitespace).
In sound/pci/hda/patch_realtek.c::alc_auto_fill_dac_nids(), in the
'for (;;)' loop, if the 'badness' value returned from
fill_and_eval_dacs() is negative, then we'll return from the function
without freeing the memory we allocated for 'best_cfg', thus leaking.
Fix the leak by kfree()'ing the memory when badness is negative.

While I was there I also noticed some trailing whitespace in the
function that I removed (along with all other trailing whitespace in
the file) - it didn't seem worth-while to do that as two patches, so I
hope it's OK that I just did it all as one patch.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-04-13 07:35:57 +02:00
..
ac97
ali5451
asihpi ASoC: fixes for 3.4 2012-04-07 12:28:00 +02:00
au88x0 ALSA: au88x0 - Avoid possible Oops at unbinding 2012-03-16 09:54:00 +01:00
aw2 Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ca0106
cs46xx
cs5535audio
ctxfi ALSA: ctxfi: Fix typo in ctvmem.c 2012-02-23 18:28:49 +01:00
echoaudio
emu10k1
hda ALSA: hda/realtek - Fix mem leak (and rid us of trailing whitespace). 2012-04-13 07:35:57 +02:00
ice1712 ALSA: ice1724 - constrain runtime rates for locked internal rate 2012-03-05 14:53:58 +01:00
korg1212
lola
lx6464es
mixart
nm256
oxygen
pcxhr
riptide
rme9652 ALSA: hdspm - Provide ioctl_compat 2012-03-08 15:58:58 +01:00
trident
vx222
ymfpci Merge branch 'topic/misc' into for-linus 2012-03-18 18:22:33 +01:00
ad1889.c
ad1889.h
ak4531_codec.c
als300.c
als4000.c
atiixp.c
atiixp_modem.c
azt3328.c ALSA: azt3328 - Fix NULL ptr dereference on cards without OPL3 2012-02-25 19:03:18 +01:00
azt3328.h
bt87x.c
cmipci.c
cs4281.c
cs5530.c
ens1370.c
ens1371.c
es1938.c
es1968.c [media] tea575x-tuner: update to latest V4L2 framework requirements 2012-03-19 11:27:21 -03:00
fm801.c [media] tea575x-tuner: update to latest V4L2 framework requirements 2012-03-19 11:27:21 -03:00
intel8x0.c
intel8x0m.c
Kconfig
maestro3.c
Makefile
rme32.c
rme96.c
sis7019.c
sis7019.h
sonicvibes.c
via82xx.c
via82xx_modem.c