ALSA: hda - Fix memory leak and error handling in CA0132 DSP loader
authorTakashi Iwai <tiwai@suse.de>
Sun, 10 Feb 2013 10:58:40 +0000 (11:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 10 Feb 2013 10:58:40 +0000 (11:58 +0100)
commitb3667bd7579e6d4dfe709315f13cff9bc9ee9053
tree6edfef15c2a1598de92c6fff7f17700ffb4ec53c
parent6d67530e2c73e375b9204eba10ee2d589ba353ae
ALSA: hda - Fix memory leak and error handling in CA0132 DSP loader

This patch fixes a few obvious bugs in DSP loader stuff:
- Fix possible memory leaks in the error path
- Avoid double-free calls in dma_reset()
- Properly set/unset WC bits for DMA buffers
- Add missing error status checks

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
sound/pci/hda/patch_ca0132.c