]> git.baikalelectronics.ru Git - kernel.git/commit
media: lirc: improve locking
authorSean Young <sean@mess.org>
Sat, 4 Nov 2017 12:30:45 +0000 (08:30 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Dec 2017 15:35:26 +0000 (10:35 -0500)
commit943f4f158a266da87482caa0dd9693695fd73fc9
tree8fbcdc5175fd304b73fda25e81ad52d49fe30e7c
parent3e0cb56551f6fd10e9f718a48a35606f78c0f750
media: lirc: improve locking

Once rc_unregister_device() has been called, no driver function
should be called.

This prevents some nasty race conditions with an ioctl calls
driver functions when the driver specific data has been freed.

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