diff options
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/netfilter/dn_rtmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/netfilter/dn_rtmsg.c b/net/decnet/netfilter/dn_rtmsg.c index ceefd9dd0c92..9e8256a2361e 100644 --- a/net/decnet/netfilter/dn_rtmsg.c +++ b/net/decnet/netfilter/dn_rtmsg.c | |||
@@ -102,7 +102,7 @@ static unsigned int dnrmg_hook(unsigned int hook, | |||
102 | 102 | ||
103 | static inline void dnrmg_receive_user_skb(struct sk_buff *skb) | 103 | static inline void dnrmg_receive_user_skb(struct sk_buff *skb) |
104 | { | 104 | { |
105 | struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; | 105 | struct nlmsghdr *nlh = nlmsg_hdr(skb); |
106 | 106 | ||
107 | if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) | 107 | if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) |
108 | return; | 108 | return; |