• Hans Verkuil's avatar
    [media] cec: improve locking · 2ab25d35
    Hans Verkuil authored
    - The global lock was used in cec_get_device when it should have
      used the devnode lock.
    - cec_put_device also took the global lock, but since the release
      function takes that lock as well this could lead to a deadlock.
      Just don't take the lock here since there is no reason for it.
    - cec_devnode_register() should take the global lock when clearing
      the bit in the global bitmap.
    - In cec_devnode_unregister() place the devnode->(un)register tests
      and assignments under the devnode lock as well: this has to be
      in a critical block.
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    2ab25d35
Name
Last commit
Last update
..
android Loading commit data...
board Loading commit data...
clocking-wizard Loading commit data...
comedi Loading commit data...
dgnc Loading commit data...
emxx_udc Loading commit data...
fbtft Loading commit data...
fsl-mc Loading commit data...
fwserial Loading commit data...
gdm724x Loading commit data...
goldfish Loading commit data...
gs_fpgaboot Loading commit data...
i4l Loading commit data...
iio Loading commit data...
ks7010 Loading commit data...
lustre Loading commit data...
media Loading commit data...
most Loading commit data...
mt29f_spinand Loading commit data...
netlogic Loading commit data...
nvec Loading commit data...
octeon Loading commit data...
octeon-usb Loading commit data...
olpc_dcon Loading commit data...
rtl8188eu Loading commit data...
rtl8192e Loading commit data...
rtl8192u Loading commit data...
rtl8712 Loading commit data...
rtl8723au Loading commit data...
rts5208 Loading commit data...
skein Loading commit data...
slicoss Loading commit data...
sm750fb Loading commit data...
speakup Loading commit data...
unisys Loading commit data...
vme Loading commit data...
vt6655 Loading commit data...
vt6656 Loading commit data...
wilc1000 Loading commit data...
wlan-ng Loading commit data...
xgifb Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...