提交 6d514774 编写于 作者: M Mauro Carvalho Chehab

[media] em28xx: Fix IR unregister logic

The input stop() callback already calls the em28xx_ir_stop method.
Calling it again causes an oops.
Acked-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 b05681b9
...@@ -463,11 +463,11 @@ int em28xx_ir_fini(struct em28xx *dev) ...@@ -463,11 +463,11 @@ int em28xx_ir_fini(struct em28xx *dev)
if (!ir) if (!ir)
return 0; return 0;
em28xx_ir_stop(ir->rc); if (ir->rc)
rc_unregister_device(ir->rc); rc_unregister_device(ir->rc);
kfree(ir);
/* done */ /* done */
kfree(ir);
dev->ir = NULL; dev->ir = NULL;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册