linux_dsm_epyc7002/drivers/media/i2c/s5c73m3
Mauro Carvalho Chehab 39ad07b7de media: s5c73m3-core: fix logic on a timeout condition
As warned by smatch:
	drivers/media/i2c/s5c73m3/s5c73m3-core.c:268 s5c73m3_check_status() error: uninitialized symbol 'status'.

if s5c73m3_check_status() is called too late, time_is_after_jiffies(end)
will return 0, causing the while to abort before reading status.

The current code will do the wrong thing here, as it will still
check if status != value. The right fix here is to change
the logic to ensure that it will always read the status.

Suggested-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-07 05:55:05 -05:00
..
Makefile
s5c73m3-core.c media: s5c73m3-core: fix logic on a timeout condition 2018-03-07 05:55:05 -05:00
s5c73m3-ctrls.c [media] v4l: s5c73m3: fix negation operator 2017-01-31 07:56:49 -02:00
s5c73m3-spi.c [media] s5c73m3: remove duplicate module device table 2016-02-01 10:13:19 -02:00
s5c73m3.h [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00