media: cec: fix wrong tx/rx_status values when canceling a msg
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 22 May 2018 11:33:13 +0000 (07:33 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 28 May 2018 20:25:25 +0000 (16:25 -0400)
commit736781584931f4069c5a9f09af50490c70bd26a7
tree1427cdb4b75617d8f2d01b217463b5cd9f6fd3e8
parent4ba610c8dc1414562b39db68d16a9d8b326c7ee0
media: cec: fix wrong tx/rx_status values when canceling a msg

When a message was canceled it could return tx_status with
both OK and MAX_RETRIES set, which is illegal.

If a canceled message was waiting for a reply, then rx_status
wasn't updated, so set that as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/cec/cec-adap.c