When the reply for a non-blocking transmit arrives, the sequence
field for that reply was never filled in, so userspace would have no
way of associating the reply to the original transmit.
Copy the sequence field to ensure that this is now possible.
Signed-off-by: Hans Verkuil <[email protected]>
Fixes: 0dbacebede1e ([media] cec: move the CEC framework out of staging and to media)
Cc: <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
if (abort)
dst->rx_status |= CEC_RX_STATUS_FEATURE_ABORT;
msg->flags = dst->flags;
+ msg->sequence = dst->sequence;
/* Remove it from the wait_queue */
list_del_init(&data->list);