linux/sound/pci/hda
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
..
hda_beep.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
hda_beep.h ALSA: hda - Fix missing static inline to beep dummy function 2011-06-14 08:14:32 +02:00
hda_codec.c ALSA: hda - Add expose_enum_ctl flag to snd_hda_add_vmaster_hook() 2012-03-13 07:55:10 +01:00
hda_codec.h ALSA: hda - Fix proc output for ADC amp values of CX20549 2012-04-07 12:25:02 +02:00
hda_eld.c ALSA: hda - hide HDMI/ELD printks unless snd.debug=2 2012-04-10 14:53:55 +02:00
hda_generic.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
hda_hwdep.c Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
hda_intel.c ALSA: hda - Set codec to D3 forcibly even if not used 2012-03-07 11:52:50 +01:00
hda_jack.c ALSA: hda - Add codec->no_jack_detect flag 2012-02-13 12:06:09 +01:00
hda_jack.h ALSA: hda - Make is_jack_detectable() as non-inlined 2012-02-13 12:06:03 +01:00
hda_local.h ALSA: hda - Add expose_enum_ctl flag to snd_hda_add_vmaster_hook() 2012-03-13 07:55:10 +01:00
hda_proc.c ALSA: hda - Fix proc output for ADC amp values of CX20549 2012-04-07 12:25:02 +02:00
hda_trace.h ALSA: hda - Add tracepoint for unsolicited events 2011-08-09 14:24:17 +02:00
Kconfig ALSA: Introduce common helper functions for jack-detection control 2011-11-16 11:14:03 +01:00
Makefile ALSA: hda - Cache the jack-detection value 2011-11-16 11:11:15 +01:00
patch_analog.c ALSA: hda - Return the created kcontrol in __snd_hda_add_vmaster() 2012-03-12 14:52:28 +01:00
patch_ca0110.c ALSA: hda - Give more unique names by snd_hda_get_pin_label() 2011-11-16 15:48:23 +01:00
patch_ca0132.c ALSA: hda - Fix error handling in patch_ca0132.c 2012-02-07 11:05:07 +01:00
patch_cirrus.c ALSA: hda - Kill hyphenated names 2012-03-02 08:59:23 +01:00
patch_cmedia.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
patch_conexant.c ASoC: fixes for 3.4 2012-04-07 12:28:00 +02:00
patch_hdmi.c ALSA: hda - hide HDMI/ELD printks unless snd.debug=2 2012-04-10 14:53:55 +02:00
patch_realtek.c ALSA: hda/realtek - Fix mem leak (and rid us of trailing whitespace). 2012-04-13 07:35:57 +02:00
patch_si3054.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
patch_sigmatel.c ALSA: hda - Fix build with CONFIG_PM=n 2012-03-16 16:15:33 +01:00
patch_via.c ALSA: hda/via - Add a few sanity checks 2012-02-22 12:36:06 +01:00