From: Dan Carpenter Date: Mon, 26 Aug 2013 16:18:17 +0000 (+0300) Subject: xen/evtchn: double free on error X-Git-Tag: upstream/snapshot3+hdmi~4249^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06b35d0072d2a126d8cd134b253e5ec65beb9e66;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git xen/evtchn: double free on error The call to del_evtchn() frees "evtchn". Signed-off-by: Dan Carpenter Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index f328f12..8b3a69a 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c @@ -319,7 +319,6 @@ err: if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close) != 0) BUG(); del_evtchn(u, evtchn); - kfree(evtchn); return rc; }