summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnoob Soman <anoob.soman@citrix.com>2017-03-02 11:50:20 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-02 23:44:22 +0100
commit9f674e48c13dcbc31ac903433727837795b81efe (patch)
tree620a1971628b5a86edfdf71009ef10f8c92e6dd5
parentbonding: use ETH_MAX_MTU as max mtu (diff)
downloadlinux-9f674e48c13dcbc31ac903433727837795b81efe.tar.xz
linux-9f674e48c13dcbc31ac903433727837795b81efe.zip
xen-netback: Use GFP_ATOMIC to allocate hash
Allocation of new_hash, inside xenvif_new_hash(), always happen in softirq context, so use GFP_ATOMIC instead of GFP_KERNEL for new hash allocation. Signed-off-by: Anoob Soman <anoob.soman@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/xen-netback/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/hash.c b/drivers/net/xen-netback/hash.c
index e8c5dddc54ba..3c4c58b9fe76 100644
--- a/drivers/net/xen-netback/hash.c
+++ b/drivers/net/xen-netback/hash.c
@@ -39,7 +39,7 @@ static void xenvif_add_hash(struct xenvif *vif, const u8 *tag,
unsigned long flags;
bool found;
- new = kmalloc(sizeof(*entry), GFP_KERNEL);
+ new = kmalloc(sizeof(*entry), GFP_ATOMIC);
if (!new)
return;