summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@samsung.com>2016-07-06 12:01:26 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-13 21:28:25 +0300
commit8e5fa4c67d6387d40e2ae350e96fca939ba5e681 (patch)
tree366b2860825d9a3b0338d553dd258c46a63622c1 /ipc
parent62e92682c08885e91113ba742573e736c85db0e4 (diff)
downloadlinux-8e5fa4c67d6387d40e2ae350e96fca939ba5e681.tar.xz
[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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions