Skip to content

Commit 0e86eb2

Browse files
AxelLindtor
authored andcommitted
Input: ps2mult - fix wrong kfree in ps2mult_connect error path
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent 39de521 commit 0e86eb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/serio/ps2mult.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int ps2mult_connect(struct serio *serio, struct serio_driver *drv)
207207
err_out:
208208
while (--i >= 0)
209209
kfree(psm->ports[i].serio);
210-
kfree(serio);
210+
kfree(psm);
211211
return error;
212212
}
213213

0 commit comments

Comments
 (0)