diff options
| author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-07-11 05:48:10 -0300 |
|---|---|---|
| committer | Ray Zhang <rayz@codeaurora.org> | 2017-05-25 11:21:57 +0800 |
| commit | 0df37e07fd7d99e4abc97a67bd48625d8a58f7a8 (patch) | |
| tree | 007eba4f34a6a7d2cda70269ea7aeab98d5fa54b | |
| parent | 468ef730e27b4b71ebfea9cec92c7caa9fe92343 (diff) | |
[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.
Change-Id: I1d11a8cbb26d19197b7f3a4a77ed8d6ce00f1853
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Git-commit: ca00033c9fc8b5f178573a76887c89296ed5b398
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
| -rw-r--r-- | drivers/staging/media/cec/cec-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/cec/cec-api.c b/drivers/staging/media/cec/cec-api.c index d7cba7a7d6b0..9151b1fa18dc 100644 --- a/drivers/staging/media/cec/cec-api.c +++ b/drivers/staging/media/cec/cec-api.c @@ -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) |
