]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: use nla_get_u64 to extract the value for IFLA_BOND_AD_ACTOR_SYSTEM
authorXin Long <lucien.xin@gmail.com>
Sun, 26 Nov 2017 13:12:09 +0000 (21:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 20:56:40 +0000 (15:56 -0500)
commit8503ccaffd0e3e43af2f0492316eb931b2e7c737
treeb444c5f3ba56b26a7b08a75ae8f2afe7681593e3
parentbb675214355fc9532caf4b5ffe0ee219ae54502e
bonding: use nla_get_u64 to extract the value for IFLA_BOND_AD_ACTOR_SYSTEM

bond_opt_initval expects a u64 type param, it's better to use
nla_get_u64 to extract the value here, to eliminate a sparse
endianness mismatch warning.

Fixes: 9fb1b1b804f9 ("bonding: add netlink support for sys prio, actor sys mac, and port key")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c