[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH net] xen: netback: read hotplug script once at start of day.



On 29/05/15 17:24, Ian Campbell wrote:
> --- a/drivers/net/xen-netback/xenbus.c
> +++ b/drivers/net/xen-netback/xenbus.c
> @@ -235,6 +235,7 @@ static int netback_remove(struct xenbus_device *dev)
>               kobject_uevent(&dev->dev.kobj, KOBJ_OFFLINE);
>               xen_unregister_watchers(be->vif);
>               xenbus_rm(XBT_NIL, dev->nodename, "hotplug-status");
> +             kfree(be->vif->hotplug_script);

Should this kfree() be in xenvif_free()?

>               xenvif_free(be->vif);
>               be->vif = NULL;
>       }

David


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.