提交 06b35d00 编写于 作者: D Dan Carpenter 提交者: Konrad Rzeszutek Wilk

xen/evtchn: double free on error

The call to del_evtchn() frees "evtchn".
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 a5deabe0
......@@ -319,7 +319,6 @@ static int evtchn_bind_to_user(struct per_user_data *u, int port)
if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close) != 0)
BUG();
del_evtchn(u, evtchn);
kfree(evtchn);
return rc;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册