]> git.karo-electronics.de Git - linux-beck.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)
commitafbb110172b93e44a3fd1b5afb3a71f7f9da4406
tree0c935be28421b6f40f6be2e2c29a9f2b7de75038
parent12accdcb92ca997ffc3bf1e76887fb991d5ac773
[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