mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
[media] cec: CEC_RECEIVE is allowed in monitor mode
When the device is in monitor mode, then you should always be able to call CEC_RECEIVE, even it the device is unconfigured. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
10a5210ed4
commit
ca00033c9f
@ -263,7 +263,7 @@ static long cec_receive(struct cec_adapter *adap, struct cec_fh *fh,
|
||||
if (copy_from_user(&msg, parg, sizeof(msg)))
|
||||
return -EFAULT;
|
||||
mutex_lock(&adap->lock);
|
||||
if (!adap->is_configured)
|
||||
if (!adap->is_configured && fh->mode_follower < CEC_MODE_MONITOR)
|
||||
err = -ENONET;
|
||||
mutex_unlock(&adap->lock);
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user