mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
media: adv7604.c: add missing return
A 'return' was missing when detecting Arbitration Lost and calling transmit_done. With the return transmit_done could be called a second time, confusing the CEC framework. Luckily the Arbitration Lost condition is very rare. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
678856299c
commit
979d33d3a7
1 changed files with 1 additions and 0 deletions
|
@ -1982,6 +1982,7 @@ static void adv76xx_cec_tx_raw_status(struct v4l2_subdev *sd, u8 tx_raw_status)
|
||||||
__func__);
|
__func__);
|
||||||
cec_transmit_done(state->cec_adap, CEC_TX_STATUS_ARB_LOST,
|
cec_transmit_done(state->cec_adap, CEC_TX_STATUS_ARB_LOST,
|
||||||
1, 0, 0, 0);
|
1, 0, 0, 0);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (tx_raw_status & 0x04) {
|
if (tx_raw_status & 0x04) {
|
||||||
u8 status;
|
u8 status;
|
||||||
|
|
Loading…
Add table
Reference in a new issue