[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1290402820.6941.8.camel@mola>
Date: Mon, 22 Nov 2010 13:13:39 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
Dmitry Torokhov <dtor@...l.ru>, linux-input@...r.kernel.org
Subject: [PATCH] Input: ps2mult - fix wrong kfree in ps2mult_connect error
path
Signed-off-by: Axel Lin <axel.lin@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists