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>
This commit is contained in:
Axel Lin 2010-11-21 22:23:06 -08:00 committed by Dmitry Torokhov
parent 39de52104d
commit 0e86eb29de
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}