Input: ps2mult - fix wrong kfree in ps2mult_connect error path
authorAxel Lin <axel.lin@gmail.com>
Mon, 22 Nov 2010 06:23:06 +0000 (22:23 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Nov 2010 06:32:09 +0000 (22:32 -0800)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/ps2mult.c

index 6bce22e4e495d64d750fbf66d6c1b011e077bc64..15aa81c9f1fb0215d1552bd36d22c5adf10d62c4 100644 (file)
@@ -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;
 }