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

Martin Kletzander mkletzan at redhat.com
Tue Apr 14 12:49:30 UTC 2015


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 err_exit' in loop), we should also do
>'virNetDevVPortProfileDisassociate' cleanup for the
>'virNetDevVPortProfileAssociate'(first code block in loop). So we should
>consider the net is successfully configured after first code block in
>loop finishes.
>
>Signed-off-by: Huanle Han <hanxueluo at gmail.com>
>---
> src/qemu/qemu_migration.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>

ACK, pushed now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150414/7c173af7/attachment-0001.sig>


More information about the libvir-list mailing list