[media] cec-adap: on reply, restore the tx_status value from the transmit

When a reply to an earlier transmit is received, the tx_status of that
transmit needs to be restored. Otherwise the status that the transmit
was successful would be lost.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Hans Verkuil 2016-06-26 06:57:56 -03:00 committed by Mauro Carvalho Chehab
parent 7b2cd0d8da
commit 7b12b47f78
1 changed files with 1 additions and 0 deletions

View File

@ -801,6 +801,7 @@ void cec_received_msg(struct cec_adapter *adap, struct cec_msg *msg)
/* We got a reply */
msg->sequence = dst->sequence;
msg->tx_status = dst->tx_status;
dst_reply = dst->reply;
*dst = *msg;
dst->reply = dst_reply;