]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: vc04_services: Fix a couple error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 May 2019 11:07:18 +0000 (14:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 07:26:04 +0000 (09:26 +0200)
commitc47b541a7b4fe78237ca42e82f22a0e233849c7c
tree251d14eb17aa529a3d4470183f16fb0b0b17848b
parent27705bd55114124a1a8a505749de473d54463ee5
Staging: vc04_services: Fix a couple error codes

These are accidentally returning positive EINVAL instead of negative
-EINVAL.  Some of the callers treat positive values as success.

Fixes: 29b3476c84c7 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/controls.c