X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=security%2Fselinux%2Fnetlink.c;h=828fb6a4e9410e6a0bae91c2126a7645db4f4daa;hb=99c6bcf46d2233d33e441834e958ed0bc22b190a;hp=14d810ead42078482807666a41902e4cb24161c0;hpb=969e5aa3b0162a02c4f287d48ff58ca2145acf1b;p=karo-tx-linux.git 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 @@ #include #include #include -#include #include #include #include @@ -77,7 +76,7 @@ static void selnl_notify(int msgtype, void *data) len = selnl_msglen(msgtype); - skb = alloc_skb(NLMSG_SPACE(len), GFP_USER); + skb = nlmsg_new(len, GFP_USER); if (!skb) goto oom;