diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-26 18:18:17 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-08-30 14:44:53 +0200 |
commit | 06b35d0072d2a126d8cd134b253e5ec65beb9e66 (patch) | |
tree | 748ed12b2f0cfa7ae6a63219b7571ad947923b40 /drivers/xen/evtchn.c | |
parent | Xen: Fix retry calls into PRIVCMD_MMAPBATCH*. (diff) | |
download | linux-06b35d0072d2a126d8cd134b253e5ec65beb9e66.tar.xz linux-06b35d0072d2a126d8cd134b253e5ec65beb9e66.zip |
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>
Diffstat (limited to 'drivers/xen/evtchn.c')
-rw-r--r-- | drivers/xen/evtchn.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |