* [PATCH] Input: ps2mult - fix wrong kfree in ps2mult_connect error path
@ 2010-11-22 5:13 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-11-22 5:13 UTC (permalink / raw)
To: linux-kernel; +Cc: Dmitry Eremin-Solenikov, Dmitry Torokhov, linux-input
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/input/serio/ps2mult.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
}
--
1.7.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-22 5:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22 5:13 [PATCH] Input: ps2mult - fix wrong kfree in ps2mult_connect error path Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).