mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
[ALSA] fix some memory leaks
Modules: Generic drivers,ES18xx driver,CS46xx driver This patch fixes two memory leaks spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
3e964432f5
commit
202728d783
3 changed files with 9 additions and 3 deletions
|
|
@ -2083,6 +2083,7 @@ static int __devinit snd_audiodrive_pnp(int dev, struct snd_audiodrive *acard,
|
|||
err = pnp_activate_dev(acard->devc);
|
||||
if (err < 0) {
|
||||
snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n");
|
||||
kfree(cfg);
|
||||
return -EAGAIN;
|
||||
}
|
||||
snd_printdd("pnp: port=0x%lx\n", pnp_port_start(acard->devc, 0));
|
||||
|
|
|
|||
Loading…
Reference in a new issue