From: Dan Carpenter Date: Mon, 26 Aug 2013 16:18:17 +0000 (+0300) Subject: xen/evtchn: double free on error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06b35d0072d2a126d8cd134b253e5ec65beb9e66;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 f328f121c92d..8b3a69a06c39 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; }