* request for 4.14-stable: 8d4068810d9926250dd2435719a080b889eb44c3
@ 2018-07-18 19:54 Sudip Mukherjee
2018-07-19 16:33 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Sudip Mukherjee @ 2018-07-18 19:54 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: stable, Sean Young, Mauro Carvalho Chehab
[-- Attachment #1: Type: text/plain, Size: 89 bytes --]
Hi Greg,
This was missing in 4.14-stable. Please apply to your queue.
--
Regards
Sudip
[-- Attachment #2: 0003-media-rc-oops-in-ir_timer_keyup-after-device-unplug.patch --]
[-- Type: text/x-diff, Size: 1293 bytes --]
>From 684ac627fd7e2490aafd7f42b451a1e5415efa10 Mon Sep 17 00:00:00 2001
From: Sean Young <sean@mess.org>
Date: Tue, 6 Mar 2018 08:57:57 -0500
Subject: [PATCH] media: rc: oops in ir_timer_keyup after device unplug
commit 8d4068810d9926250dd2435719a080b889eb44c3 upstream
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>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
drivers/media/rc/rc-main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 72f381522cb2..a22828713c1c 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -1824,11 +1824,11 @@ void rc_unregister_device(struct rc_dev *dev)
if (!dev)
return;
- del_timer_sync(&dev->timer_keyup);
-
if (dev->driver_type == RC_DRIVER_IR_RAW)
ir_raw_event_unregister(dev);
+ del_timer_sync(&dev->timer_keyup);
+
rc_free_rx_device(dev);
device_del(&dev->dev);
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: request for 4.14-stable: 8d4068810d9926250dd2435719a080b889eb44c3
2018-07-18 19:54 request for 4.14-stable: 8d4068810d9926250dd2435719a080b889eb44c3 Sudip Mukherjee
@ 2018-07-19 16:33 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2018-07-19 16:33 UTC (permalink / raw)
To: Sudip Mukherjee; +Cc: stable, Sean Young, Mauro Carvalho Chehab
On Wed, Jul 18, 2018 at 08:54:40PM +0100, Sudip Mukherjee wrote:
> Hi Greg,
>
> This was missing in 4.14-stable. Please apply to your queue.
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-19 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 19:54 request for 4.14-stable: 8d4068810d9926250dd2435719a080b889eb44c3 Sudip Mukherjee
2018-07-19 16:33 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).