提交 0e86eb29 编写于 作者: A Axel Lin 提交者: Dmitry Torokhov

Input: ps2mult - fix wrong kfree in ps2mult_connect error path

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 39de5210
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册