Skip to contentSkip to conversation

backlight: lm3630: add missing destroy_workqueue() on error in lm3630a_intr_config

PATCH Jingoo Han 1 participant 1 message Oct 1, 2013 Framebuffer layer

lore
Share & tools
lore

Jingoo Han

author Acked-by
#0 lore raw
Quoted 7 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

Add the missing destroy_workqueue() before return from lm3630a_intr_config() in the error handling case.

+cc Andrew Morton, Daniel Jeong

Best regards,
Jingoo Han

Quoted 18 lines
---
 drivers/video/backlight/lm3630a_bl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/backlight/lm3630a_bl.c +1 -1
index c63f918..0e5d8d3 100644
@@ -154,6 +154,7 @@ static int lm3630a_intr_config(struct lm3630a_chip *pchip)
 	    (pchip->irq, NULL, lm3630a_isr_func,
 	     IRQF_TRIGGER_FALLING | IRQF_ONESHOT, "lm3630a_irq", pchip)) {
 		dev_err(pchip->dev, "request threaded irq fail\n");
+		destroy_workqueue(pchip->irqthread);
 		return -ENOMEM;
 	}
 	return rval;
 
--