diff options
Diffstat (limited to 'sound')
-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) | |||
103 | 103 | ||
104 | err = input_register_device(input_dev); | 104 | err = input_register_device(input_dev); |
105 | if (err < 0) { | 105 | if (err < 0) { |
106 | kfree(input_dev); | 106 | input_free_device(input_dev); |
107 | kfree(beep); | 107 | kfree(beep); |
108 | return err; | 108 | return err; |
109 | } | 109 | } |