diff mbox

Input: ps2mult - fix wrong kfree in ps2mult_connect error path

Message ID 1290402820.6941.8.camel@mola (mailing list archive)
State New, archived
Headers show

Commit Message

axel lin Nov. 22, 2010, 5:13 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/serio/ps2mult.c b/drivers/input/serio/ps2mult.c
index 6bce22e..15aa81c 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;
 }