]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec-adap.c: add 'unregistered' checks
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 8 Sep 2020 10:26:11 +0000 (12:26 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 26 Sep 2020 08:25:13 +0000 (10:25 +0200)
commit22f5ef5943d43690da13ce332ddc27a9e6db78e6
tree4a584b8a7cd9a037236b7f027942aa14afbd95c7
parentbbaf5c059dc3a25d8e0a69109c5e0a38bdaa3208
media: cec-adap.c: add 'unregistered' checks

Make the code a bit more robust by checking if the adapter has
been unregistered at the start of cec_transmit_msg_fh() and
cec_received_msg_ts(). If it is unregistered, then just return.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/cec/core/cec-adap.c