Staging: iio/light/tsl2563: unlock on an error path
Subsystems (4)
PATCH 1/2 Staging: iio/light/tsl2563: unlock on an error path
We need to unlock here before returning.
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/iio/light/tsl2563.c +2 -1
@@ -518,7 +518,8 @@ static int tsl2563_read_raw(struct iio_dev *indio_dev, ret =IIO_VAL_INT ;break ;default : -return -EINVAL ; + ret = -EINVAL ; + goto error_ret; } error_ret:
Quoted 1 line · Dan Carpenter
We need to unlock here before returning.
Thanks
Quoted 2 lines
Signed-off-by Dan Carpenter <[email protected]>
Acked-by Jonathan Cameron <[email protected]>
Quoted 16 lines
drivers/staging/iio/light/tsl2563.c +2
-1@@ -518,7 +518,8 @@ static int tsl2563_read_raw(struct iio_dev *indio_dev, ret =IIO_VAL_INT ;break ;default : -return -EINVAL ; + ret = -EINVAL ; + goto error_ret; } error_ret: