]> git.baikalelectronics.ru Git - kernel.git/commit
[media] lirc: prevent use-after free
authorSean Young <sean@mess.org>
Mon, 31 Oct 2016 17:52:26 +0000 (15:52 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 21 Nov 2016 15:19:56 +0000 (13:19 -0200)
commit0944d15e9cad901e60827ce57faffad016925ac1
tree0c935be28421b6f40f6be2e2c29a9f2b7de75038
parent8406ec7292a8fa84a36b42489a988b7e6520d035
[media] lirc: prevent use-after free

If you unplug an lirc device while reading from it, you will get an
use after free as the cdev is freed while still in use.

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