diff options
Diffstat (limited to 'security/selinux/netlink.c')
-rw-r--r-- | security/selinux/netlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c index 14d810ead420..828fb6a4e941 100644 --- a/security/selinux/netlink.c +++ b/security/selinux/netlink.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/export.h> | 17 | #include <linux/export.h> |
18 | #include <linux/skbuff.h> | 18 | #include <linux/skbuff.h> |
19 | #include <linux/netlink.h> | ||
20 | #include <linux/selinux_netlink.h> | 19 | #include <linux/selinux_netlink.h> |
21 | #include <net/net_namespace.h> | 20 | #include <net/net_namespace.h> |
22 | #include <net/netlink.h> | 21 | #include <net/netlink.h> |
@@ -77,7 +76,7 @@ static void selnl_notify(int msgtype, void *data) | |||
77 | 76 | ||
78 | len = selnl_msglen(msgtype); | 77 | len = selnl_msglen(msgtype); |
79 | 78 | ||
80 | skb = alloc_skb(NLMSG_SPACE(len), GFP_USER); | 79 | skb = nlmsg_new(len, GFP_USER); |
81 | if (!skb) | 80 | if (!skb) |
82 | goto oom; | 81 | goto oom; |
83 | 82 | ||