]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec: add check if adapter is unregistered
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 10 Jul 2016 13:11:17 +0000 (10:11 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 16:38:16 +0000 (13:38 -0300)
commitbc707fce9c64400a56ee65047e647068f453f669
tree2bac0b609d6260e786cab8a4f132fe0733eccc03
parent5648f5116892dcb43a7465d1949fc3164e7ee4fc
[media] cec: add check if adapter is unregistered

CEC USB dongles can be unplugged at any time, and at that point they will
be unregistered. Make sure that any attempt afterwards to set the physical
or logical addresses will be ignored.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-adap.c