]> git.baikalelectronics.ru Git - kernel.git/commit
[media] lirc: cannot read from tx-only device
authorSean Young <sean@mess.org>
Wed, 1 Feb 2017 22:08:56 +0000 (20:08 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 16:23:36 +0000 (14:23 -0200)
commit799168ab59c7744efa15864e4092562d953e9b43
tree27cff6e2d7e5c77020f02dae0777f474aa69efc7
parent0d6b8f080b779203d40c05724d2e1224d83f2b2f
[media] lirc: cannot read from tx-only device

Bail out early, otherwise we follow a null pointer.

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