From d9cd40e9faae648ffd8a8a81fc87f923e3b981e5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 16 Oct 2009 16:56:57 +0200 Subject: [PATCH] pknock: switch allocations to GFP_KERNEL All allocations currently using GFP_ATOMIC happen in user context, so GFP_KERNEL is sufficient. --- extensions/pknock/xt_pknock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/pknock/xt_pknock.c b/extensions/pknock/xt_pknock.c index 9bfcdf4..830603e 100644 --- a/extensions/pknock/xt_pknock.c +++ b/extensions/pknock/xt_pknock.c @@ -162,7 +162,7 @@ alloc_hashtable(unsigned int size) struct list_head *hash; unsigned int i; - hash = kmalloc(sizeof(*hash) * size, GFP_ATOMIC); + hash = kmalloc(sizeof(*hash) * size, GFP_KERNEL); if (hash == NULL) return NULL; for (i = 0; i < size; ++i) @@ -470,7 +470,7 @@ add_rule(struct xt_pknock_mtinfo *info) } } - rule = kmalloc(sizeof(*rule), GFP_ATOMIC); + rule = kmalloc(sizeof(*rule), GFP_KERNEL); if (rule == NULL) return false;