Skip to contentSkip to conversation

+ drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Oct 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 03 Oct 2013 15:15:43 -0700

The patch titled
Subject: drivers/video/backlight/lm3630a_bl.c: add missing destroy_workqueue() on error in lm3630a_intr_config()
has been added to the -mm tree. Its filename is
drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Wei Yongjun <[email protected]>
Subject: 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.

---

 drivers/video/backlight/lm3630a_bl.c |    1 +
 1 file changed, 1 insertion(+)
drivers/video/backlight/lm3630a_bl.c renamed from drivers/video/backlight/lm3630a_bl.c~drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config +1 -0
diff -puN drivers/video/backlight/lm3630a_bl.c~drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config drivers/video/backlight/lm3630a_bl.c
@@ -154,6 +154,7 @@ static int lm3630a_intr_config(struct lm
 	    (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;

_

Patches currently in -mm which might be from [email protected] are

origin.patch drivers-video-backlight-lm3630a_blc-add-missing-destroy_workqueue-on-error-in-lm3630a_intr_config.patch drivers-message-i2o-driverc-add-missing-destroy_workqueue-on-error-in-i2o_driver_register.patch linux-next.patch