mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
netdev: Fix command length passed to l_netlink_send
Quiet the following dmesg warning: netlink: 16 bytes leftover after parsing attributes in process `iwd'.
This commit is contained in:
parent
e421af2a58
commit
9c99166e7a
@ -1290,7 +1290,7 @@ static void netdev_get_interface_callback(struct l_genl_msg *msg,
|
||||
rtmmsg->ifi_family = AF_UNSPEC;
|
||||
rtmmsg->ifi_index = *ifindex;
|
||||
|
||||
l_netlink_send(rtnl, RTM_GETLINK, 0, rtmmsg, bufsize,
|
||||
l_netlink_send(rtnl, RTM_GETLINK, 0, rtmmsg, sizeof(struct ifinfomsg),
|
||||
netdev_getlink_cb, netdev, NULL);
|
||||
|
||||
l_free(rtmmsg);
|
||||
|
Loading…
Reference in New Issue
Block a user