From: Anoob Soman Date: Thu, 2 Mar 2017 10:50:20 +0000 (+0000) Subject: xen-netback: Use GFP_ATOMIC to allocate hash X-Git-Tag: v4.11-rc1~1^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f674e48c13dcbc31ac903433727837795b81efe;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/xen-netback/hash.c b/drivers/net/xen-netback/hash.c index e8c5ddd..3c4c58b 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;