Skip to content

Commit 9f674e4

Browse files
anoobsdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 31c0541 commit 9f674e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/xen-netback/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void xenvif_add_hash(struct xenvif *vif, const u8 *tag,
3939
unsigned long flags;
4040
bool found;
4141

42-
new = kmalloc(sizeof(*entry), GFP_KERNEL);
42+
new = kmalloc(sizeof(*entry), GFP_ATOMIC);
4343
if (!new)
4444
return;
4545

0 commit comments

Comments
 (0)