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:
Jan Engelhardt
2009-10-16 16:56:57 +02:00
parent 22edc7a24d
commit d9cd40e9fa

View File

@@ -162,7 +162,7 @@ alloc_hashtable(unsigned int size)
struct list_head *hash; struct list_head *hash;
unsigned int i; unsigned int i;
hash = kmalloc(sizeof(*hash) * size, GFP_ATOMIC); hash = kmalloc(sizeof(*hash) * size, GFP_KERNEL);
if (hash == NULL) if (hash == NULL)
return NULL; return NULL;
for (i = 0; i < size; ++i) 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) if (rule == NULL)
return false; return false;