diff options
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index a78fd61da0ec..d4bcdcc68e92 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -3854,6 +3854,9 @@ static int rtnl_fill_statsinfo(struct sk_buff *skb, struct net_device *dev, | |||
3854 | return -EMSGSIZE; | 3854 | return -EMSGSIZE; |
3855 | 3855 | ||
3856 | ifsm = nlmsg_data(nlh); | 3856 | ifsm = nlmsg_data(nlh); |
3857 | ifsm->family = PF_UNSPEC; | ||
3858 | ifsm->pad1 = 0; | ||
3859 | ifsm->pad2 = 0; | ||
3857 | ifsm->ifindex = dev->ifindex; | 3860 | ifsm->ifindex = dev->ifindex; |
3858 | ifsm->filter_mask = filter_mask; | 3861 | ifsm->filter_mask = filter_mask; |
3859 | 3862 | ||