Patch "iio: accel: bma180: Fix indio_dev->trig assignment" has been added to the 3.16-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    iio: accel: bma180: Fix indio_dev->trig assignment

to the 3.16-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:
     iio-accel-bma180-fix-indio_dev-trig-assignment.patch
and it can be found in the queue-3.16 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 0668a4e4d297328ce08b44d91d160537596115e2 Mon Sep 17 00:00:00 2001
From: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
Date: Fri, 22 Aug 2014 21:48:00 +0100
Subject: iio: accel: bma180: Fix indio_dev->trig assignment

From: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>

commit 0668a4e4d297328ce08b44d91d160537596115e2 upstream.

This can result in wrong reference count for trigger device, call
iio_trigger_get to increment reference.
Refer to http://www.spinics.net/lists/linux-iio/msg13669.html for discussion
with Jonathan.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

--- a/drivers/iio/accel/bma180.c
+++ b/drivers/iio/accel/bma180.c
@@ -571,7 +571,7 @@ static int bma180_probe(struct i2c_clien
 	trig->ops = &bma180_trigger_ops;
 	iio_trigger_set_drvdata(trig, indio_dev);
 	data->trig = trig;
-	indio_dev->trig = trig;
+	indio_dev->trig = iio_trigger_get(trig);
 
 	ret = iio_trigger_register(trig);
 	if (ret)


Patches currently in stable-queue which might be from srinivas.pandruvada@xxxxxxxxxxxxxxx are

queue-3.16/gpio-acpi-use-pin-index-and-bit-length.patch
queue-3.16/iio-hid_sensor_hub-fix-indio_dev-trig-assignment.patch
queue-3.16/iio-meter-ade7758-fix-indio_dev-trig-assignment.patch
queue-3.16/iio-trigger-modify-return-value-for-iio_trigger_get.patch
queue-3.16/iio-adc-ad_sigma_delta-fix-indio_dev-trig-assignment.patch
queue-3.16/iio-st_sensors-fix-indio_dev-trig-assignment.patch
queue-3.16/iio-gyro-itg3200-fix-indio_dev-trig-assignment.patch
queue-3.16/iio-inv_mpu6050-fix-indio_dev-trig-assignment.patch
queue-3.16/iio-accel-bma180-fix-indio_dev-trig-assignment.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]