diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-07-29 12:08:16 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-29 21:32:08 +0200 |
commit | f6154d6d007c69a330acc9021ec77cca5da9dc4c (patch) | |
tree | 54f8aaa54493414e184adcb62ad4eba687ba9e29 /sound/pci/hda/hda_beep.c | |
parent | 0d94e41abe271c86df06bcf72d24f9ca7ce771f0 (diff) | |
download | linux-f6154d6d007c69a330acc9021ec77cca5da9dc4c.tar.gz linux-f6154d6d007c69a330acc9021ec77cca5da9dc4c.tar.bz2 linux-f6154d6d007c69a330acc9021ec77cca5da9dc4c.zip |
ALSA: hda - use input_free_device()
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>
Diffstat (limited to 'sound/pci/hda/hda_beep.c')
-rw-r--r-- | sound/pci/hda/hda_beep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index 5a764c481391..9b77b3e0fa98 100644 --- 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) { - kfree(input_dev); + input_free_device(input_dev); kfree(beep); return err; } |