Home
last modified time | relevance | path

Searched hist:"8 e5fa4c6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/rc/
H A Dlirc_dev.c8e5fa4c6 Wed Jul 06 04:01:26 CDT 2016 Andi Shyti <andi.shyti@samsung.com> [media] lirc_dev: fix potential segfault

When opening or closing a lirc character device, the framework
provides to the user the possibility to keep track of opening or
closing of the device by calling two functions:

- set_use_inc() when opening the device
- set_use_dec() when closing the device

if those are not set by the lirc user, the system segfaults.
Check the pointer value before calling the above functions.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
8e5fa4c6 Wed Jul 06 04:01:26 CDT 2016 Andi Shyti <andi.shyti@samsung.com> [media] lirc_dev: fix potential segfault

When opening or closing a lirc character device, the framework
provides to the user the possibility to keep track of opening or
closing of the device by calling two functions:

- set_use_inc() when opening the device
- set_use_dec() when closing the device

if those are not set by the lirc user, the system segfaults.
Check the pointer value before calling the above functions.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>