Skip to content

Commit e28e1d9

Browse files
AxelLindtor
authored andcommitted
Input: rpckbd - fix a leak of the IRQ during init failure
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>
1 parent 26fcd2a commit e28e1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/serio/rpckbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static int rpckbd_open(struct serio *port)
9090

9191
if (request_irq(IRQ_KEYBOARDTX, rpckbd_tx, 0, "rpckbd", port) != 0) {
9292
printk(KERN_ERR "rpckbd.c: Could not allocate keyboard transmit IRQ\n");
93-
free_irq(IRQ_KEYBOARDRX, NULL);
93+
free_irq(IRQ_KEYBOARDRX, port);
9494
return -EBUSY;
9595
}
9696

0 commit comments

Comments
 (0)