]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] cx231xx: fix handling cx231xx_read_i2c_data result
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 24 Sep 2015 14:00:18 +0000 (11:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 3 Oct 2015 14:32:32 +0000 (11:32 -0300)
commite54560d963866a45e5905a16821e3904ed0c9561
treeefc5204397e03f19ac48ebf4e388e84ea53bc028
parent2788052a8ac9326723c8526f9c5953b8cfff8ab5
[media] cx231xx: fix handling cx231xx_read_i2c_data result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2046107

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/cx231xx/cx231xx-video.c