drivers/video/backlight/lm3630a_bl.c: add missing destroy_workqueue() on error in lm3630a_intr_config()
Add the missing destroy_workqueue() before return from lm3630a_intr_config() in the error handling case. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a18863f5e8
commit
bcd5b41656
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ static int lm3630a_intr_config(struct lm3630a_chip *pchip)
|
||||||
(pchip->irq, NULL, lm3630a_isr_func,
|
(pchip->irq, NULL, lm3630a_isr_func,
|
||||||
IRQF_TRIGGER_FALLING | IRQF_ONESHOT, "lm3630a_irq", pchip)) {
|
IRQF_TRIGGER_FALLING | IRQF_ONESHOT, "lm3630a_irq", pchip)) {
|
||||||
dev_err(pchip->dev, "request threaded irq fail\n");
|
dev_err(pchip->dev, "request threaded irq fail\n");
|
||||||
|
destroy_workqueue(pchip->irqthread);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
return rval;
|
return rval;
|
||||||
|
|
Loading…
Add table
Reference in a new issue