提交 7b12b47f 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[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: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 7b2cd0d8
...@@ -801,6 +801,7 @@ void cec_received_msg(struct cec_adapter *adap, struct cec_msg *msg) ...@@ -801,6 +801,7 @@ void cec_received_msg(struct cec_adapter *adap, struct cec_msg *msg)
/* We got a reply */ /* We got a reply */
msg->sequence = dst->sequence; msg->sequence = dst->sequence;
msg->tx_status = dst->tx_status;
dst_reply = dst->reply; dst_reply = dst->reply;
*dst = *msg; *dst = *msg;
dst->reply = dst_reply; dst->reply = dst_reply;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册