summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnoob Soman <anoob.soman@citrix.com>2017-03-02 10:50:20 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-21 17:21:33 +0200
commit43588be0735f78b4fbbcbae1e8234a5d4620c191 (patch)
treee83009d5c705bb29028d9641ef40ec28f0b2035d
parentebbd5ac4acdbfd8e4286a96286b057e49287133a (diff)
xen-netback: Use GFP_ATOMIC to allocate hash
[ Upstream commit 9f674e48c13dcbc31ac903433727837795b81efe ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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;