projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
995f054
)
[PATCH] irq-devres: fix failure path of devm_request_irq()
author
Tejun Heo
<htejun@gmail.com>
Sat, 7 Apr 2007 05:59:41 +0000
(14:59 +0900)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sat, 7 Apr 2007 17:05:21 +0000
(10:05 -0700)
devres should be deallocated with devres_free() not kfree(). This bug
corrupts slab on IRQ request failure. Fix it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg KH <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/irq/devres.c
patch
|
blob
|
history
diff --git
a/kernel/irq/devres.c
b/kernel/irq/devres.c
index
85a430d
..
d8ee241
100644
(file)
--- 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) {
-
k
free(dr);
+
devres_
free(dr);
return rc;
}