diff options
author | Hans Verkuil <hansverk@cisco.com> | 2017-02-28 10:20:50 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-22 11:15:55 -0300 |
commit | a8e97e531afaaef24a4985a822a041fcc099788d (patch) | |
tree | b848f74169179b904c1b25673ce5c77cb2f352fe /drivers/media/cec | |
parent | 79cabaa320d7ba07a233afb944dd151d26b7ddbd (diff) | |
download | blackbird-op-linux-a8e97e531afaaef24a4985a822a041fcc099788d.tar.gz blackbird-op-linux-a8e97e531afaaef24a4985a822a041fcc099788d.zip |
[media] cec: don't Feature Abort msgs from Unregistered
Feature Abort shouldn't be sent in reply to messages from Unregistered,
since that would make it a broadcast message.
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/cec')
-rw-r--r-- | drivers/media/cec/cec-adap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c index 46b7da6df9b5..25d0a835921f 100644 --- a/drivers/media/cec/cec-adap.c +++ b/drivers/media/cec/cec-adap.c @@ -1615,6 +1615,9 @@ static int cec_feature_abort_reason(struct cec_adapter *adap, */ if (msg->msg[1] == CEC_MSG_FEATURE_ABORT) return 0; + /* Don't Feature Abort messages from 'Unregistered' */ + if (cec_msg_initiator(msg) == CEC_LOG_ADDR_UNREGISTERED) + return 0; cec_msg_set_reply_to(&tx_msg, msg); cec_msg_feature_abort(&tx_msg, msg->msg[1], reason); return cec_transmit_msg(adap, &tx_msg, false); |