]> git.baikalelectronics.ru Git - kernel.git/commit
media: imon: fix timer racing disconnect
authorOliver Neukum <oneukum@suse.com>
Thu, 28 Apr 2022 13:34:54 +0000 (15:34 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:22 +0000 (11:02 +0200)
commit87d7cc0782f7aab0ee76e449f3dab0c2f01cb4ee
tree913b0ce274e86800ff7fb4fd3367a9486f298a65
parent33c96bc9f98e0d2236a39fb57a75db24f35e6a1d
media: imon: fix timer racing disconnect

The timer will report events for an input device.
Reporting events for an unregistered device is bad.
Hence the timer must be killed first.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/imon.c