Skip to contentSkip to conversation

: Use GFP_ATOMIC in ipt_hashlimit

PATCH In review Patrick McHardy 1 participant 1 message Feb 4, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 : Use GFP_ATOMIC in ipt_hashlimit

Fix GFP_KERNEL allocation under spinlock.

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/02/01 15:08:47+01:00 [email protected]
# [NETFILTER]: Use GFP_ATOMIC in ipt_hashlimit
#
# Signed-off-by: Samuel Jean <[email protected]>
# Signed-off-by: Patrick McHardy <[email protected]>
#

# net/ipv4/netfilter/ipt_hashlimit.c
#   2005/02/01 15:08:39+01:00 [email protected] +1 -1
#   [NETFILTER]: Use GFP_ATOMIC in ipt_hashlimit
#   
#   Signed-off-by: Samuel Jean <[email protected]>
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
diff -Nru a/net/ipv4/netfilter/ipt_hashlimit.c b/net/ipv4/netfilter/ipt_hashlimit.c
--- a/net/ipv4/netfilter/ipt_hashlimit.c	2005-02-03 20:43:16 +01:00
+++ b/net/ipv4/netfilter/ipt_hashlimit.c	2005-02-03 20:43:16 +01:00
@@ -570,7 +570,7 @@
 	if (*pos >= htable->cfg.size)
 		return NULL;

- bucket = kmalloc(sizeof(unsigned int), GFP_KERNEL);
+ bucket = kmalloc(sizeof(unsigned int), GFP_ATOMIC);
if (!bucket)
return ERR_PTR(-ENOMEM);