mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
xen-netback: Use GFP_ATOMIC to allocate hash
[ Upstream commit 9f674e48c1 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ebbd5ac4ac
commit
43588be073
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user