Re: [libvirt] [PATCH] qemu: fix index error when clean up vport profile

2015-04-14 Thread Martin Kletzander
On Wed, Apr 08, 2015 at 02:40:15AM +0800, Huanle Han wrote: 1. 'last_good_net' indicates the index of last successfully configured net. so def-nets[last_good_net] should also be clean up if error occurs. 2. if error occurs in 'virNetDevMacVLanVPortProfileRegisterCallback' (second 'goto

[libvirt] [PATCH] qemu: fix index error when clean up vport profile

2015-04-07 Thread Huanle Han
1. 'last_good_net' indicates the index of last successfully configured net. so def-nets[last_good_net] should also be clean up if error occurs. 2. if error occurs in 'virNetDevMacVLanVPortProfileRegisterCallback' (second 'goto err_exit' in loop), we should also do