mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
[ALSA] Fix memory leak in sound/isa/es18xx.c
Fixed a memory leak in the error patch. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
f3838ba920
commit
92b93d3171
1 changed files with 1 additions and 0 deletions
|
@ -2154,6 +2154,7 @@ static int __devinit snd_audiodrive_pnpc(int dev, struct snd_audiodrive *acard,
|
||||||
}
|
}
|
||||||
/* Control port initialization */
|
/* Control port initialization */
|
||||||
if (pnp_activate_dev(acard->devc) < 0) {
|
if (pnp_activate_dev(acard->devc) < 0) {
|
||||||
|
kfree(cfg);
|
||||||
snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n");
|
snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n");
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue