mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 07:04:04 +08:00
media: cec-adap: fix regression in ping sanity check
Commitb6c96e1568
inadvertently also dropped the 'msg->len > 1' test from the preceding sanity check. This caused compliance test failures. Fixes:b6c96e1568
("media: cec: allow any initiator for Ping and Image/Text View On") Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
50710eeefb
commit
64b42d8eee
@ -809,7 +809,7 @@ int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg,
|
|||||||
__func__);
|
__func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (adap->is_configured &&
|
if (msg->len > 1 && adap->is_configured &&
|
||||||
!cec_has_log_addr(adap, cec_msg_initiator(msg))) {
|
!cec_has_log_addr(adap, cec_msg_initiator(msg))) {
|
||||||
dprintk(1, "%s: initiator has unknown logical address %d\n",
|
dprintk(1, "%s: initiator has unknown logical address %d\n",
|
||||||
__func__, cec_msg_initiator(msg));
|
__func__, cec_msg_initiator(msg));
|
||||||
|
Loading…
Reference in New Issue
Block a user