Skip to contentSkip to conversation

Input: ps2mult - fix wrong kfree in ps2mult_connect error path

PATCH New Axel Lin 1 participant 1 message Nov 22, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 Input: ps2mult - fix wrong kfree in ps2mult_connect error path

---
 drivers/input/serio/ps2mult.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/serio/ps2mult.c +1 -1
index 6bce22e..15aa81c 100644
@@ -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;
 }
 
Signature · 1 line
1.7.2