[3.8.y.z extended stable] Patch "staging:iio:ad799x fix error_free_irq which was freeing an irq that" has been added to staging queue
Kamal Mostafa
kamal at canonical.com
Mon Feb 24 19:50:54 UTC 2014
This is a note to let you know that I have just added a patch titled
staging:iio:ad799x fix error_free_irq which was freeing an irq that
to the linux-3.8.y-queue branch of the 3.8.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.8.y-queue
This patch is scheduled to be released in version 3.8.13.19.
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.8.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Kamal
------
>From 520357ea77a30c1f7b4f1bb43bd975e80ae5bcd5 Mon Sep 17 00:00:00 2001
From: Hartmut Knaack <knaack.h at gmx.de>
Date: Wed, 1 Jan 2014 23:04:00 +0000
Subject: staging:iio:ad799x fix error_free_irq which was freeing an irq that
may not have been requested
commit 38408d056188be29a6c4e17f3703c796551bb330 upstream.
Only free an IRQ in error_free_irq, if it has been requested previously.
Signed-off-by: Hartmut Knaack <knaack.h at gmx.de>
Acked-by: Lars-Peter Clausen <lars at metafoo.de>
Signed-off-by: Jonathan Cameron <jic23 at kernel.org>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
drivers/staging/iio/adc/ad799x_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/iio/adc/ad799x_core.c b/drivers/staging/iio/adc/ad799x_core.c
index 077eedb..01ba328 100644
--- a/drivers/staging/iio/adc/ad799x_core.c
+++ b/drivers/staging/iio/adc/ad799x_core.c
@@ -918,7 +918,8 @@ static int ad799x_probe(struct i2c_client *client,
return 0;
error_free_irq:
- free_irq(client->irq, indio_dev);
+ if (client->irq > 0)
+ free_irq(client->irq, indio_dev);
error_cleanup_ring:
ad799x_ring_cleanup(indio_dev);
error_disable_reg:
--
1.8.3.2
More information about the kernel-team
mailing list