]> git.baikalelectronics.ru Git - kernel.git/commit
[media] stk-webcam: fix an endian bug in stk_camera_read_reg()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Nov 2016 11:11:54 +0000 (09:11 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 18:29:01 +0000 (16:29 -0200)
commit86ec28eca0d6974853315ea95a9689537433cb38
treec1891a896ec6b28dd302ba9653385efa644f3fe6
parent98fedae53fec35447d93f515f4905c7c331b7a41
[media] stk-webcam: fix an endian bug in stk_camera_read_reg()

We pass an int pointer to stk_camera_read_reg() but only write to the
highest byte.  It's a bug on big endian systems and generally a nasty
thing to do and doesn't match the write function either.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/stkwebcam/stk-sensor.c
drivers/media/usb/stkwebcam/stk-webcam.c
drivers/media/usb/stkwebcam/stk-webcam.h