Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e86eb29 authored by Axel Lin's avatar Axel Lin Committed by Dmitry Torokhov
Browse files

Input: ps2mult - fix wrong kfree in ps2mult_connect error path



Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 39de5210
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}