|
@@ -455,8 +455,8 @@ int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid)
|
|
return nlmsg_unicast(rtnl, skb, pid);
|
|
return nlmsg_unicast(rtnl, skb, pid);
|
|
}
|
|
}
|
|
|
|
|
|
-int rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, u32 group,
|
|
|
|
- struct nlmsghdr *nlh, gfp_t flags)
|
|
|
|
|
|
+void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, u32 group,
|
|
|
|
+ struct nlmsghdr *nlh, gfp_t flags)
|
|
{
|
|
{
|
|
struct sock *rtnl = net->rtnl;
|
|
struct sock *rtnl = net->rtnl;
|
|
int report = 0;
|
|
int report = 0;
|
|
@@ -464,7 +464,7 @@ int rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, u32 group,
|
|
if (nlh)
|
|
if (nlh)
|
|
report = nlmsg_report(nlh);
|
|
report = nlmsg_report(nlh);
|
|
|
|
|
|
- return nlmsg_notify(rtnl, skb, pid, group, report, flags);
|
|
|
|
|
|
+ nlmsg_notify(rtnl, skb, pid, group, report, flags);
|
|
}
|
|
}
|
|
|
|
|
|
void rtnl_set_sk_err(struct net *net, u32 group, int error)
|
|
void rtnl_set_sk_err(struct net *net, u32 group, int error)
|
|
@@ -1246,7 +1246,8 @@ void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change)
|
|
kfree_skb(skb);
|
|
kfree_skb(skb);
|
|
goto errout;
|
|
goto errout;
|
|
}
|
|
}
|
|
- err = rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_KERNEL);
|
|
|
|
|
|
+ rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_KERNEL);
|
|
|
|
+ return;
|
|
errout:
|
|
errout:
|
|
if (err < 0)
|
|
if (err < 0)
|
|
rtnl_set_sk_err(net, RTNLGRP_LINK, err);
|
|
rtnl_set_sk_err(net, RTNLGRP_LINK, err);
|