提交 f6154d6d 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

ALSA: hda - use input_free_device()

Use input_free_devce() correctly instead of kfree() at error path.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@perex.cz>
上级 0d94e41a
无相关合并请求
...@@ -103,7 +103,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) ...@@ -103,7 +103,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
err = input_register_device(input_dev); err = input_register_device(input_dev);
if (err < 0) { if (err < 0) {
kfree(input_dev); input_free_device(input_dev);
kfree(beep); kfree(beep);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部