mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-05 20:26:38 +02:00
pknock: switch allocations to GFP_KERNEL
All allocations currently using GFP_ATOMIC happen in user context, so GFP_KERNEL is sufficient.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user