diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index addb58501057..5f02b4be1917 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3786,7 +3786,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb) | |||
3786 | err = -EINVAL; | 3786 | err = -EINVAL; |
3787 | goto out; | 3787 | goto out; |
3788 | } | 3788 | } |
3789 | nlh = (struct nlmsghdr *)skb->data; | 3789 | nlh = nlmsg_hdr(skb); |
3790 | 3790 | ||
3791 | err = selinux_nlmsg_lookup(isec->sclass, nlh->nlmsg_type, &perm); | 3791 | err = selinux_nlmsg_lookup(isec->sclass, nlh->nlmsg_type, &perm); |
3792 | if (err) { | 3792 | if (err) { |