diff options
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r-- | net/decnet/dn_route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index bb73bf16630f..9678b096b844 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1468,7 +1468,7 @@ static int dn_rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, | |||
1468 | struct dn_route *rt = (struct dn_route *)skb->dst; | 1468 | struct dn_route *rt = (struct dn_route *)skb->dst; |
1469 | struct rtmsg *r; | 1469 | struct rtmsg *r; |
1470 | struct nlmsghdr *nlh; | 1470 | struct nlmsghdr *nlh; |
1471 | unsigned char *b = skb->tail; | 1471 | unsigned char *b = skb_tail_pointer(skb); |
1472 | long expires; | 1472 | long expires; |
1473 | 1473 | ||
1474 | nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*r), flags); | 1474 | nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*r), flags); |
@@ -1509,7 +1509,7 @@ static int dn_rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, | |||
1509 | if (rt->fl.iif) | 1509 | if (rt->fl.iif) |
1510 | RTA_PUT(skb, RTA_IIF, sizeof(int), &rt->fl.iif); | 1510 | RTA_PUT(skb, RTA_IIF, sizeof(int), &rt->fl.iif); |
1511 | 1511 | ||
1512 | nlh->nlmsg_len = skb->tail - b; | 1512 | nlh->nlmsg_len = skb_tail_pointer(skb) - b; |
1513 | return skb->len; | 1513 | return skb->len; |
1514 | 1514 | ||
1515 | nlmsg_failure: | 1515 | nlmsg_failure: |