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>
This commit is contained in:
Anoob Soman 2017-03-02 10:50:20 +00:00 committed by David S. Miller
parent 31c05415f5
commit 9f674e48c1

View File

@ -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;