commit | 06b35d0072d2a126d8cd134b253e5ec65beb9e66 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Aug 26 19:18:17 2013 +0300 |
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | Fri Aug 30 08:44:53 2013 -0400 |
tree | 748ed12b2f0cfa7ae6a63219b7571ad947923b40 | |
parent | a5deabe0e62203350369020687c3fc3b7445a0d0 [diff] |
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>
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 @@ if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close) != 0) BUG(); del_evtchn(u, evtchn); - kfree(evtchn); return rc; }