path: root/include/media/lirc_dev.h
diff options
authorDavid Härdeman <david@hardeman.nu>2017-06-30 05:41:57 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 14:02:27 -0300
commit3381b779a736f4908a64b603ce339ab067e01de7 (patch)
treee10bd4644efa6b3b47eee0f097c87ea3dde515a4 /include/media/lirc_dev.h
parent3bce5572364899970cbe908d98c51d1bc743b2f8 (diff)
[media] media: lirc_dev: sanitize locking
Use the irctl mutex for all device operations and only use lirc_dev_lock to protect the irctls array. Also, make sure that the device is alive early in each fops function before doing anything else. Since this patch touches nearly every line where the irctl mutex is taken/released, it also renames the mutex at the same time (the name irctl_lock will be misleading once struct irctl goes away in later patches). [mchehab@s-opensource.com: fix a merge conflict] Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/lirc_dev.h')
0 files changed, 0 insertions, 0 deletions

Privacy Policy