diff options
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 50dc5edb7752..04b72d3c1dea 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1471,7 +1471,7 @@ static int netlink_rcv_skb(struct sk_buff *skb, int (*cb)(struct sk_buff *, | |||
1471 | int err; | 1471 | int err; |
1472 | 1472 | ||
1473 | while (skb->len >= nlmsg_total_size(0)) { | 1473 | while (skb->len >= nlmsg_total_size(0)) { |
1474 | nlh = (struct nlmsghdr *) skb->data; | 1474 | nlh = nlmsg_hdr(skb); |
1475 | 1475 | ||
1476 | if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len) | 1476 | if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len) |
1477 | return 0; | 1477 | return 0; |