aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/wireless.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/wireless.c')
-rw-r--r--net/core/wireless.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/wireless.c b/net/core/wireless.c
index 7c6a5db544f1..4a777b68e3bc 100644
--- a/net/core/wireless.c
+++ b/net/core/wireless.c
@@ -1938,7 +1938,7 @@ static inline int rtnetlink_fill_iwinfo(struct sk_buff * skb,
1938{ 1938{
1939 struct ifinfomsg *r; 1939 struct ifinfomsg *r;
1940 struct nlmsghdr *nlh; 1940 struct nlmsghdr *nlh;
1941 unsigned char *b = skb->tail; 1941 unsigned char *b = skb_tail_pointer(skb);
1942 1942
1943 nlh = NLMSG_PUT(skb, 0, 0, type, sizeof(*r)); 1943 nlh = NLMSG_PUT(skb, 0, 0, type, sizeof(*r));
1944 r = NLMSG_DATA(nlh); 1944 r = NLMSG_DATA(nlh);
@@ -1952,7 +1952,7 @@ static inline int rtnetlink_fill_iwinfo(struct sk_buff * skb,
1952 /* Add the wireless events in the netlink packet */ 1952 /* Add the wireless events in the netlink packet */
1953 RTA_PUT(skb, IFLA_WIRELESS, event_len, event); 1953 RTA_PUT(skb, IFLA_WIRELESS, event_len, event);
1954 1954
1955 nlh->nlmsg_len = skb->tail - b; 1955 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
1956 return skb->len; 1956 return skb->len;
1957 1957
1958nlmsg_failure: 1958nlmsg_failure: