The call to del_evtchn() frees "evtchn". Signed-off-by: Dan Carpenter <dan.carpenter@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 @@ err: if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close) != 0) BUG(); del_evtchn(u, evtchn); - kfree(evtchn); return rc; }
On 26/08/13 17:18, Dan Carpenter wrote:> The call to del_evtchn() frees "evtchn". > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>Good catch, thanks. Reviewed-by: David Vrabel <david.vrabel@citrix.com> This needs to be queued up for 3.12. David