OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26fcd2a
)
Input: rpckbd - fix a leak of the IRQ during init failure
author
Axel Lin
<axel.lin@gmail.com>
Sun, 3 Apr 2011 04:20:24 +0000
(21:20 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sun, 3 Apr 2011 04:47:53 +0000
(21:47 -0700)
In rpckbd_open prror path, free_irq() was using NULL rather than the
driver data as the data pointer so free_irq() wouldn't have matched.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/rpckbd.c
patch
|
blob
|
history
diff --git
a/drivers/input/serio/rpckbd.c
b/drivers/input/serio/rpckbd.c
index
9da6fbc
..
7ec3c97
100644
(file)
--- a/
drivers/input/serio/rpckbd.c
+++ b/
drivers/input/serio/rpckbd.c
@@
-90,7
+90,7
@@
static int rpckbd_open(struct serio *port)
if (request_irq(IRQ_KEYBOARDTX, rpckbd_tx, 0, "rpckbd", port) != 0) {
printk(KERN_ERR "rpckbd.c: Could not allocate keyboard transmit IRQ\n");
- free_irq(IRQ_KEYBOARDRX,
NULL
);
+ free_irq(IRQ_KEYBOARDRX,
port
);
return -EBUSY;
}