From: Wei Yongjun Date: Tue, 12 Nov 2013 23:09:37 +0000 (-0800) Subject: drivers/video/backlight/lm3630a_bl.c: add missing destroy_workqueue() on error in... X-Git-Tag: accepted/tizen/common/20141203.182822~1142^2~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcd5b4165645eb44c781bca456c11c0478546161;p=platform%2Fkernel%2Flinux-arm64.git 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 Acked-by: Jingoo Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index 999075a..35fe482 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -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;