[3.16.y-ckt stable] Patch "iio: as3935: allocate correct iio_device size" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Nov 24 15:00:53 UTC 2014
This is a note to let you know that I have just added a patch titled
iio: as3935: allocate correct iio_device size
to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.16.y-queue
This patch is scheduled to be released in version 3.16.7-ckt2.
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.16.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From dd36d3defb78bb2f6bb96730bd826ff49752b04c Mon Sep 17 00:00:00 2001
From: George McCollister <george.mccollister at gmail.com>
Date: Fri, 31 Oct 2014 15:44:00 +0000
Subject: iio: as3935: allocate correct iio_device size
commit f73cde600d410ad4b31362a9c348016e40a146ea upstream.
Signed-off-by: George McCollister <george.mccollister at gmail.com>
Acked-by: Hartmut Knaack <knaack.h at gmx.de>
Signed-off-by: Jonathan Cameron <jic23 at kernel.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
drivers/iio/proximity/as3935.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c
index bf677bfe8eb2..d102210b207d 100644
--- a/drivers/iio/proximity/as3935.c
+++ b/drivers/iio/proximity/as3935.c
@@ -330,7 +330,7 @@ static int as3935_probe(struct spi_device *spi)
return -EINVAL;
}
- indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(st));
+ indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
if (!indio_dev)
return -ENOMEM;
--
2.1.0
More information about the kernel-team
mailing list