Re: [PATCH 2/2] virarptable: Return a virArpTablePtr when the nlmsghdr for loop is over

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

 



At 2018-09-07 18:44:54, "Lin Ma" <lma@xxxxxxxx> wrote:
>commit b00c9c39 removed the label end_of_netlink_messages and 'return
>table' statement, It causes the function virArpTableGet doesn't return
>a proper virArpTable pointer.
>
>How to reproduce:
> # virsh domiflist sles12sp3
>Interface  Type       Source     Model       MAC
>-------------------------------------------------------
>vnet0      network    default    virtio      52:54:00:cd:02:e6
>
> # virsh domifaddr sles12sp3 --source arp
>error: Failed to query for interfaces addresses
>error: An error occurred, but the cause is unknown
>
>It seems that the "if (nh->nlmsg_type == NLMSG_DONE)" statement won't be
>meted. So this patch adds 'return table' when the iterations of nlmsghdr
>for loop is over.
>
>Signed-off-by: Lin Ma <lma@xxxxxxxx>
>---

It seemed that the cleanup series delete our return value.

Reviewed-by: Chen Hanxiao <chenhanxiao@xxxxxxxxx>

Regards,
- Chen

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux