linux/drivers/media/cec
Hans Verkuil ac791f19a2 media: cec-pin: fix broken tx_ignore_nack_until_eom error injection
If the tx_ignore_nack_until_eom error injection was activated,
then tx_nacked was never set instead of setting it when the last
byte of the message was transmitted.

As a result the transmit was marked as OK, when it should have
been NACKed.

Modify the condition so that it always sets tx_nacked when the
last byte of the message was transmitted.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org>      # for v4.17 and up
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-11-23 05:48:44 -05:00
..
cec-adap.c media: cec: increase debug level for 'queue full' 2018-11-06 05:23:05 -05:00
cec-api.c media: cec: integrate cec_validate_phys_addr() in cec-api.c 2018-09-24 09:11:01 -04:00
cec-core.c media: cec: name for RC passthrough device does not need 'RC for' 2018-10-05 11:28:13 -04:00
cec-notifier.c media: cec-notifier: Get notifier by device and connector name 2018-07-13 08:44:16 +01:00
cec-pin-error-inj.c media: cec-pin-error-inj: avoid a false-positive Spectre detection 2018-05-28 16:11:17 -04:00
cec-pin-priv.h media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
cec-pin.c media: cec-pin: fix broken tx_ignore_nack_until_eom error injection 2018-11-23 05:48:44 -05:00
cec-priv.h media: cec: add SPDX license info 2018-02-14 13:16:03 -05:00
Kconfig media: cec-pin-error-inj: parse/show error injection 2018-03-22 08:00:59 -04:00
Makefile media: cec: remove cec-edid.c 2018-09-24 09:11:06 -04:00