Message ID | 1269970750-25624-3-git-send-email-john.johansen@canonical.com |
---|---|
State | Accepted |
Delegated to: | Andy Whitcroft |
Headers | show |
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 89a26a0..a852d06 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -41,7 +41,7 @@ static void *kvmalloc(size_t size) if (size == 0) return NULL; - buffer = kmalloc(size, GFP_KERNEL); + buffer = kmalloc(size, GFP_KERNEL | __GFP_NOWARN); if (!buffer) buffer = vmalloc(size); return buffer; diff --git a/security/apparmor/match.c b/security/apparmor/match.c index 677d1c2..5a55959 100644 --- a/security/apparmor/match.c +++ b/security/apparmor/match.c @@ -72,7 +72,7 @@ static struct table_header *unpack_table(char *blob, size_t bsize) goto out; /* freed by free_table */ - table = kmalloc(tsize, GFP_KERNEL); + table = kmalloc(tsize, GFP_KERNEL | __GFP_NOWARN); if (!table) table = vmalloc(tsize); if (table) {