Re: [libvirt] [PATCH 2/2] bhyve: do not cleanup unallocated networks on fail

2014-06-13 Thread Roman Bogorodskiy
Eric Blake wrote: > On 06/13/2014 10:48 AM, Roman Bogorodskiy wrote: > > virBhyveProcessStart() calls bhyveNetCleanup() if it fails. However, > > it might fail earlier than networks are allocated, so modify > > bhyveNetCleanup() to check if net->ifname is not NULL before > > going further with t

Re: [libvirt] [PATCH 2/2] bhyve: do not cleanup unallocated networks on fail

2014-06-13 Thread Eric Blake
On 06/13/2014 10:48 AM, Roman Bogorodskiy wrote: > virBhyveProcessStart() calls bhyveNetCleanup() if it fails. However, > it might fail earlier than networks are allocated, so modify > bhyveNetCleanup() to check if net->ifname is not NULL before > going further with the cleanup. > --- > src/bhyve/

[libvirt] [PATCH 2/2] bhyve: do not cleanup unallocated networks on fail

2014-06-13 Thread Roman Bogorodskiy
virBhyveProcessStart() calls bhyveNetCleanup() if it fails. However, it might fail earlier than networks are allocated, so modify bhyveNetCleanup() to check if net->ifname is not NULL before going further with the cleanup. --- src/bhyve/bhyve_process.c | 10 ++ 1 file changed, 6 insertions