* [PATCH 2.6.11 4/4]: Use GFP_ATOMIC in ipt_hashlimit
@ 2005-02-04 3:05 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-02-04 3:05 UTC (permalink / raw)
To: David S. Miller; +Cc: Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 44 bytes --]
Fix GFP_KERNEL allocation under spinlock.
[-- Attachment #2: 04.diff --]
[-- Type: text/x-patch, Size: 994 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/02/01 15:08:47+01:00 sjean@cookinglinux.org
# [NETFILTER]: Use GFP_ATOMIC in ipt_hashlimit
#
# Signed-off-by: Samuel Jean <sjean@cookinglinux.org>
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/ipv4/netfilter/ipt_hashlimit.c
# 2005/02/01 15:08:39+01:00 sjean@cookinglinux.org +1 -1
# [NETFILTER]: Use GFP_ATOMIC in ipt_hashlimit
#
# Signed-off-by: Samuel Jean <sjean@cookinglinux.org>
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-04 3:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 3:05 [PATCH 2.6.11 4/4]: Use GFP_ATOMIC in ipt_hashlimit Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.