This is a note to let you know that I've just added the patch titled
staging:iio:ade7758: Fix check if channels are enabled in prenable
to the 3.17-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-ade7758-fix-check-if-channels-are-enabled-in-prenable.patch
and it can be found in the queue-3.17 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 79fa64eb2ee8ccb4bcad7f54caa2699730b10b22 Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <[email protected]>
Date: Tue, 4 Nov 2014 18:03:15 +0100
Subject: staging:iio:ade7758: Fix check if channels are enabled in prenable
From: Lars-Peter Clausen <[email protected]>
commit 79fa64eb2ee8ccb4bcad7f54caa2699730b10b22 upstream.
We should check if a channel is enabled, not if no channels are enabled.
Fixes: 550268ca1111 ("staging:iio: scrap scan_count and ensure all drivers use
active_scan_mask")
Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/staging/iio/meter/ade7758_ring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/iio/meter/ade7758_ring.c
+++ b/drivers/staging/iio/meter/ade7758_ring.c
@@ -87,7 +87,7 @@ static int ade7758_ring_preenable(struct
{
unsigned channel;
- if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength))
+ if (bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength))
return -EINVAL;
channel = find_first_bit(indio_dev->active_scan_mask,
Patches currently in stable-queue which might be from [email protected] are
queue-3.17/asoc-adau1761-fix-input-pga-volume.patch
queue-3.17/staging-iio-ad5933-fix-null-pointer-deref-when-enabling-buffer.patch
queue-3.17/staging-iio-ade7758-fix-check-if-channels-are-enabled-in-prenable.patch
queue-3.17/staging-iio-ad5933-drop-raw-from-channel-names.patch
queue-3.17/staging-iio-ade7758-fix-null-pointer-deref-when-enabling-buffer.patch
queue-3.17/staging-iio-ade7758-remove-raw-from-channel-name.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html