summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-26 19:18:17 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-08-30 08:44:53 -0400
commit06b35d0072d2a126d8cd134b253e5ec65beb9e66 (patch)
tree748ed12b2f0cfa7ae6a63219b7571ad947923b40
parenta5deabe0e62203350369020687c3fc3b7445a0d0 (diff)
downloadop-kernel-dev-06b35d0072d2a126d8cd134b253e5ec65beb9e66.zip
op-kernel-dev-06b35d0072d2a126d8cd134b253e5ec65beb9e66.tar.gz
xen/evtchn: double free on error
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>
-rw-r--r--drivers/xen/evtchn.c1
1 files changed, 0 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud