[merged] drivers-iio-inkernc-fix-iio_convert_raw_to_processed_unlocked.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: [merged] drivers-iio-inkernc-fix-iio_convert_raw_to_processed_unlocked.patch removed from -mm tree
To: alexandre.belloni@xxxxxxxxxxxxxxxxxx,jic23@xxxxxxxxx,stable@xxxxxxxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Thu, 18 Jul 2013 13:33:05 -0700


The patch titled
     Subject: drivers/iio/inkern.c: fix iio_convert_raw_to_processed_unlocked()
has been removed from the -mm tree.  Its filename was
     drivers-iio-inkernc-fix-iio_convert_raw_to_processed_unlocked.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx>
Subject: drivers/iio/inkern.c: fix iio_convert_raw_to_processed_unlocked()

When reading IIO_CHAN_INFO_OFFSET, the return value of iio_channel_read() for
success will be IIO_VAL*, checking for 0 is not correct.

Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx>
Cc: Jonathan Cameron <jic23@xxxxxxxxx>
Cc: <stable@xxxxxxxxxxxxxxx>	[3.10.x]
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/iio/inkern.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/iio/inkern.c~drivers-iio-inkernc-fix-iio_convert_raw_to_processed_unlocked drivers/iio/inkern.c
--- a/drivers/iio/inkern.c~drivers-iio-inkernc-fix-iio_convert_raw_to_processed_unlocked
+++ a/drivers/iio/inkern.c
@@ -451,7 +451,7 @@ static int iio_convert_raw_to_processed_
 	int ret;
 
 	ret = iio_channel_read(chan, &offset, NULL, IIO_CHAN_INFO_OFFSET);
-	if (ret == 0)
+	if (ret >= 0)
 		raw64 += offset;
 
 	scale_type = iio_channel_read(chan, &scale_val, &scale_val2,
_

Patches currently in -mm which might be from alexandre.belloni@xxxxxxxxxxxxxxxxxx are

linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]