Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300379
b: refs/heads/master
c: 7f116b5
h: refs/heads/master
i:
  300377: e52264e
  300375: c54c3b7
v: v3
  • Loading branch information
David S. Miller committed Apr 1, 2012
1 parent f99e559 commit f4e2fe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b34ec43c9b3de44a5420841ab293d1b2035a94c
refs/heads/master: 7f116b5b6c2418e9d9ba2c2ba82cbbad45e36fc5
8 changes: 5 additions & 3 deletions trunk/net/phonet/pn_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ static int fill_addr(struct sk_buff *skb, struct net_device *dev, u8 addr,
ifm->ifa_flags = IFA_F_PERMANENT;
ifm->ifa_scope = RT_SCOPE_LINK;
ifm->ifa_index = dev->ifindex;
NLA_PUT_U8(skb, IFA_LOCAL, addr);
if (nla_put_u8(skb, IFA_LOCAL, addr))
goto nla_put_failure;
return nlmsg_end(skb, nlh);

nla_put_failure:
Expand Down Expand Up @@ -183,8 +184,9 @@ static int fill_route(struct sk_buff *skb, struct net_device *dev, u8 dst,
rtm->rtm_scope = RT_SCOPE_UNIVERSE;
rtm->rtm_type = RTN_UNICAST;
rtm->rtm_flags = 0;
NLA_PUT_U8(skb, RTA_DST, dst);
NLA_PUT_U32(skb, RTA_OIF, dev->ifindex);
if (nla_put_u8(skb, RTA_DST, dst) ||
nla_put_u32(skb, RTA_OIF, dev->ifindex))
goto nla_put_failure;
return nlmsg_end(skb, nlh);

nla_put_failure:
Expand Down

0 comments on commit f4e2fe1

Please sign in to comment.