Patch "staging: iio: accel: fix error check" has been added to the 3.14-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
staging: iio: accel: fix error check
to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
staging-iio-accel-fix-error-check.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
ef3149eb3ddb7f9125e11c90f8330e371b55cffdMon Sep 17 00:00:00 2001
From: Luis de Bethencourt <[email protected]>
Date: Wed, 22 Jun 2016 20:43:30 +0100
Subject: staging: iio: accel: fix error check
From: Luis de Bethencourt <[email protected]>
commit ef3149eb3ddb7f9125e11c90f8330e371b55cffd upstream.
sca3000_read_ctrl_reg() returns a negative number on failure, check for this instead of zero.
--- drivers/staging/iio/accel/sca3000_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/accel/sca3000_core.c +1 -1
@@ -592,7 +592,7 @@ static ssize_t sca3000_read_frequency(st goto error_ret_mut; ret =sca3000_read_ctrl_reg (st,SCA3000_REG_CTRL_SEL_OUT_CTRL );mutex_unlock (&st->lock); -if (ret) +if (ret <0 ) goto error_ret; val = ret;if (base_freq >0 )
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/staging-iio-accel-fix-error-check.patch