>>> On 17.06.15 at 14:02, <david.vra...@citrix.com> wrote:
> --- a/xen/common/event_channel.c
> +++ b/xen/common/event_channel.c
> @@ -1175,22 +1175,6 @@ int alloc_unbound_xen_event_channel(
>  
>  void free_xen_event_channel(struct domain *d, int port)
>  {
> -    struct evtchn *chn;
> -
> -    spin_lock(&d->event_lock);
> -
> -    if ( unlikely(d->is_dying) )
> -    {
> -        spin_unlock(&d->event_lock);
> -        return;
> -    }
> -
> -    BUG_ON(!port_is_valid(d, port));
> -    chn = evtchn_from_port(d, port);
> -    BUG_ON(!consumer_is_xen(chn));

At least in debug builds I think these would better be retained.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to