From: Hans Verkuil Date: Sun, 26 Jun 2016 09:57:56 +0000 (-0300) Subject: [media] cec-adap: on reply, restore the tx_status value from the transmit X-Git-Tag: v4.14-rc1~2828^2~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b12b47f78e458ea90cc350bc7a4b9385eef897a;p=platform%2Fkernel%2Flinux-rpi.git [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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c index 5ffa839..98bdcf9 100644 --- a/drivers/staging/media/cec/cec-adap.c +++ b/drivers/staging/media/cec/cec-adap.c @@ -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;