Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d514774 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b05681b9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -463,11 +463,11 @@ int em28xx_ir_fini(struct em28xx *dev)
	if (!ir)
		return 0;

	em28xx_ir_stop(ir->rc);
	if (ir->rc)
		rc_unregister_device(ir->rc);
	kfree(ir);

	/* done */
	kfree(ir);
	dev->ir = NULL;
	return 0;
}