diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-22 01:23:06 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-11-22 01:32:09 -0500 |
commit | 0e86eb29def648664c2c0fa605f5b5bad84247cb (patch) | |
tree | b4c5595d9a8b0c0f826c224ed031097eb8ec91f6 /drivers/input | |
parent | 39de52104dd92bc0548a20201350111dc9317df9 (diff) |
Input: ps2mult - fix wrong kfree in ps2mult_connect error path
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | 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 6bce22e4e495..15aa81c9f1fb 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) | |||
207 | err_out: | 207 | err_out: |
208 | while (--i >= 0) | 208 | while (--i >= 0) |
209 | kfree(psm->ports[i].serio); | 209 | kfree(psm->ports[i].serio); |
210 | kfree(serio); | 210 | kfree(psm); |
211 | return error; | 211 | return error; |
212 | } | 212 | } |
213 | 213 | ||