]> git.baikalelectronics.ru Git - kernel.git/commit
media: rc: oops in ir_timer_keyup after device unplug
authorSean Young <sean@mess.org>
Tue, 6 Mar 2018 13:57:57 +0000 (08:57 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 21 Mar 2018 15:11:26 +0000 (11:11 -0400)
commitc6f1ac3f8fbcce091192680af0024b31b9c2ef6b
tree7cfde2df50aa7ba80ef478bf0f1836b622046dc0
parent39236fd8bd848390212e927dc63236151104fea1
media: rc: oops in ir_timer_keyup after device unplug

If there is IR in the raw kfifo when ir_raw_event_unregister() is called,
then kthread_stop() causes ir_raw_event_thread to be scheduled, decode
some scancodes and re-arm timer_keyup. The timer_keyup then fires when
the rc device is long gone.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/rc-main.c