projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d94e41
)
ALSA: hda - use input_free_device()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 29 Jul 2008 10:08:16 +0000
(12:08 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Tue, 29 Jul 2008 19:32:08 +0000
(21:32 +0200)
Use input_free_devce() correctly instead of kfree() at error path.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/hda_beep.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_beep.c
b/sound/pci/hda/hda_beep.c
index
5a764c4
..
9b77b3e
100644
(file)
--- a/
sound/pci/hda/hda_beep.c
+++ b/
sound/pci/hda/hda_beep.c
@@
-103,7
+103,7
@@
int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
err = input_register_device(input_dev);
if (err < 0) {
-
kfre
e(input_dev);
+
input_free_devic
e(input_dev);
kfree(beep);
return err;
}