ALSA: sparc: Add missing kfree in error path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 17 Jul 2015 18:33:21 +0000 (20:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Jul 2015 20:29:43 +0000 (22:29 +0200)
commit25e5eaf19962bd48788371e4f516bdd89ce248bc
treec068a7389a48c94495d6b11ffc47f49361f6661d
parent67756e3191c90e7c0b94b8b2fb63de255b6cd337
ALSA: sparc: Add missing kfree in error path

If 'of_ioremap' fails, then 'amd' should be freed, otherwise, there is a
memory leak.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sparc/amd7930.c