Skip to content

Commit

Permalink
xen/evtchn: double free on error
Browse files Browse the repository at this point in the history
The call to del_evtchn() frees "evtchn".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  • Loading branch information
Dan Carpenter authored and Konrad Rzeszutek Wilk committed Aug 30, 2013
1 parent a5deabe commit 06b35d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/xen/evtchn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 06b35d0

Please sign in to comment.