diff options
author | David Härdeman <david@hardeman.nu> | 2017-06-30 05:41:57 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2017-10-04 14:02:27 -0300 |
commit | 3381b779a736f4908a64b603ce339ab067e01de7 (patch) | |
tree | e10bd4644efa6b3b47eee0f097c87ea3dde515a4 /sound/last.c | |
parent | 3bce5572364899970cbe908d98c51d1bc743b2f8 (diff) | |
download | linux-3381b779a736f4908a64b603ce339ab067e01de7.tar.bz2 |
[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 'sound/last.c')
0 files changed, 0 insertions, 0 deletions