Commit:     7f30e49ee1c2c1e95ce9d2ccce5221ddb793dd60
Parent:     995f054f2a342f8505fed4f8395d12c0f5966414
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Sat Apr 7 14:59:41 2007 +0900
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sat Apr 7 10:05:21 2007 -0700

    [PATCH] irq-devres: fix failure path of devm_request_irq()
    devres should be deallocated with devres_free() not kfree().  This bug
    corrupts slab on IRQ request failure.  Fix it.
    Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>
    Cc: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 kernel/irq/devres.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/irq/devres.c b/kernel/irq/devres.c
index 85a430d..d8ee241 100644
--- a/kernel/irq/devres.c
+++ b/kernel/irq/devres.c
@@ -54,7 +54,7 @@ int devm_request_irq(struct device *dev, unsigned int irq,
        rc = request_irq(irq, handler, irqflags, devname, dev_id);
        if (rc) {
-               kfree(dr);
+               devres_free(dr);
                return rc;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to