kernel_samsung_a53x/drivers/media/dvb-core
Mauro Carvalho Chehab 224f0ed85c media: dvb_frontend: don't play tricks with underflow values
[ Upstream commit 9883a4d41aba7612644e9bb807b971247cea9b9d ]

fepriv->auto_sub_step is unsigned. Setting it to -1 is just a
trick to avoid calling continue, as reported by Coverity.

It relies to have this code just afterwards:

	if (!ready) fepriv->auto_sub_step++;

Simplify the code by simply setting it to zero and use
continue to return to the while loop.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-30 02:33:23 +01:00
..
dmxdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvb_ca_en50221.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvb_demux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvb_frontend.c media: dvb_frontend: don't play tricks with underflow values 2024-11-30 02:33:23 +01:00
dvb_math.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvb_net.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvb_ringbuffer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvb_vb2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dvbdev.c media: dvbdev: prevent the risk of out of memory access 2024-11-30 02:33:23 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00