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:
committed by
Dmitry Torokhov
parent
39de52104d
commit
0e86eb29de
@@ -207,7 +207,7 @@ static int ps2mult_connect(struct serio *serio, struct serio_driver *drv)
|
|||||||
err_out:
|
err_out:
|
||||||
while (--i >= 0)
|
while (--i >= 0)
|
||||||
kfree(psm->ports[i].serio);
|
kfree(psm->ports[i].serio);
|
||||||
kfree(serio);
|
kfree(psm);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user