]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
[media] cec: fix test for unconfigured adapter in main message loop
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 17 Jul 2016 14:42:06 +0000 (11:42 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Jul 2016 16:26:06 +0000 (13:26 -0300)
commit58ecc29b5e829c2072fe3a98a93ef163bdb36dd9
tree4b1ec5000900b5031594a8ee82f528220a7414ab
parent11065f8531ed33d5e847a36ad64231ee599d4996
[media] cec: fix test for unconfigured adapter in main message loop

The main message loop checks if the physical address was valid, and if
not it is assumed that the adapter had been unconfigured.

However, this check is no longer correct, instead it should check
that both adap->is_configured and adap->is_configuring are false.

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