Kangjie Lu c9b7d8f252 media: lgdt3306a: fix a missing check of return value
If lgdt3306a_read_reg() fails, the read data in "val" is incorrect, thus
shouldn't be further used. The fix inserts a check for the return value
of lgdt3306a_read_reg(). If it fails, goto fail.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-16 11:43:48 -05:00
..
2018-03-21 14:11:54 -04:00
2018-12-03 13:30:15 -05:00
2018-12-05 03:22:10 -05:00
2016-11-13 10:02:22 -08:00
2016-03-03 09:26:05 -03:00
2018-09-11 13:32:17 -04:00
2015-04-08 15:02:07 -03:00
2018-10-31 10:53:29 -07:00
2017-12-12 05:33:18 -05:00
2018-09-11 13:32:17 -04:00