mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 13:06:41 +07:00
[NETLINK]: Kill bogus NLMSG_SET_MULTIPART uses.
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c52a3f89f8
commit
4b6ea82dd1
@ -1589,9 +1589,9 @@ static int neightbl_fill_info(struct neigh_table *tbl, struct sk_buff *skb,
|
||||
struct ndtmsg *ndtmsg;
|
||||
|
||||
nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg));
|
||||
ndtmsg = NLMSG_DATA(nlh);
|
||||
nlh->nlmsg_flags |= NLM_F_MULTI;
|
||||
|
||||
NLMSG_SET_MULTIPART(nlh);
|
||||
ndtmsg = NLMSG_DATA(nlh);
|
||||
|
||||
read_lock_bh(&tbl->lock);
|
||||
ndtmsg->ndtm_family = tbl->family;
|
||||
@ -1674,9 +1674,9 @@ static int neightbl_fill_param_info(struct neigh_table *tbl,
|
||||
struct nlmsghdr *nlh;
|
||||
|
||||
nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg));
|
||||
ndtmsg = NLMSG_DATA(nlh);
|
||||
nlh->nlmsg_flags |= NLM_F_MULTI;
|
||||
|
||||
NLMSG_SET_MULTIPART(nlh);
|
||||
ndtmsg = NLMSG_DATA(nlh);
|
||||
|
||||
read_lock_bh(&tbl->lock);
|
||||
ndtmsg->ndtm_family = tbl->family;
|
||||
|
Loading…
Reference in New Issue
Block a user