em28xx: Fix IR unregister logic
A message that is not in the archive (sent off-list or not yet received): d2fea3477b6527f29b946f6aa5842398d72c3a1e.1311918789.git.mchehab@redhat.com
PATCH 2/2 em28xx: Fix IR unregister logic
The input stop() callback already calls the em28xx_ir_stop method. Calling it again causes an oops.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
drivers/media/video/em28xx/em28xx-input.c +3 -3
@@ -463,11 +463,11 @@ int em28xx_ir_fini(struct em28xx *dev)if (!ir)return 0 ; -em28xx_ir_stop (ir->rc); -rc_unregister_device (ir->rc); -kfree (ir); +if (ir->rc) +rc_unregister_device (ir->rc);/* done */ +kfree (ir); dev->ir =NULL ;return 0 ; }
Signature · 1 line
1.7.1
Quoted 4 lines · Mauro Carvalho Chehab
The input
stop()callback already calls theem28xx_ir_stopmethod. Calling it again causes an oops.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Yep, my old em28xx HVR-950 behaves much better with this and patch 1 of the pair applied.
Acked-by Jarod Wilson <[email protected]>
Signature · 2 lines
Jarod Wilson [email protected]