projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66c65d9
)
staging:iio:ad799x fix error_free_irq which was freeing an irq that may not have...
author
Hartmut Knaack
<knaack.h@gmx.de>
Wed, 1 Jan 2014 23:04:00 +0000
(23:04 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 11 Jan 2014 11:46:52 +0000
(11:46 +0000)
Only free an IRQ in error_free_irq, if it has been requested previously.
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: stable@vger.kernel.org
drivers/staging/iio/adc/ad799x_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/adc/ad799x_core.c
b/drivers/staging/iio/adc/ad799x_core.c
index bad4c8a9d1e9e7bd524894c843aa0704b062602a..c1b601acfd9018338f40bd3a3a2cbebcfb19e134 100644
(file)
--- a/
drivers/staging/iio/adc/ad799x_core.c
+++ b/
drivers/staging/iio/adc/ad799x_core.c
@@
-594,7
+594,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: