From: Axel Lin Date: Mon, 22 Nov 2010 06:23:06 +0000 (-0800) Subject: Input: ps2mult - fix wrong kfree in ps2mult_connect error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e86eb29def648664c2c0fa605f5b5bad84247cb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: ps2mult - fix wrong kfree in ps2mult_connect error path Signed-off-by: Axel Lin Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/serio/ps2mult.c b/drivers/input/serio/ps2mult.c index 6bce22e4e495..15aa81c9f1fb 100644 --- a/drivers/input/serio/ps2mult.c +++ b/drivers/input/serio/ps2mult.c @@ -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; }