Skip to content

Commit

Permalink
Input: ps2mult - fix wrong kfree in ps2mult_connect error path
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
AxelLin authored and dtor committed Nov 22, 2010
1 parent 39de521 commit 0e86eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/serio/ps2mult.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int ps2mult_connect(struct serio *serio, struct serio_driver *drv)
err_out:
while (--i >= 0)
kfree(psm->ports[i].serio);
kfree(serio);
kfree(psm);
return error;
}

Expand Down

0 comments on commit 0e86eb2

Please sign in to comment.