提交 1e42dc78 编写于 作者: M Manu Abraham 提交者: Mauro Carvalho Chehab

V4L/DVB (13807): Fix: Free device in the device registration failure case

Signed-off-by: NManu Abraham <manu@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a1497357
...@@ -129,6 +129,7 @@ int mantis_input_init(struct mantis_pci *mantis) ...@@ -129,6 +129,7 @@ int mantis_input_init(struct mantis_pci *mantis)
err = input_register_device(rc); err = input_register_device(rc);
if (err) { if (err) {
dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err);
input_free_device(rc);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册