staging:iio:ad799x fix error_free_irq, use devm_request_threaded_irq
Subsystems (4)
PATCH v2 1/2 staging:iio:ad799x fix error_free_irq, use devm_request_threaded_irq
Only free an IRQ in error_free_irq, if it has been requested previously.
---
drivers/staging/iio/adc/ad799x_core.c +2 -1
@@ -590,7 +590,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:
Quoted 3 lines · Hartmut Knaack
Only free an IRQ in
error_free_irq, if it has been requested previously.Signed-off-by Hartmut Knaack <[email protected]>
Quoted 20 lines
---
drivers/staging/iio/adc/ad799x_core.c +2
-2@@ -590,7 +590,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: --To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Jonathan Cameron
maintainerQuoted 6 lines · Lars-Peter Clausen
Quoted 3 lines · Hartmut Knaack
Only free an IRQ in
error_free_irq, if it has been requested previously.Signed-off-by Hartmut Knaack <[email protected]>
I changed the title to only mention the fix as that's all that is now in this patch. Applied to the fixes-togreg branch of iio.git and marked for stable.
Note that given timing this won't go upstream until after 3.14-rc1
Thanks,
Jonathan
Quoted 22 lines
Quoted 21 lines
---
drivers/staging/iio/adc/ad799x_core.c +2
-2@@ -590,7 +590,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: --To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html