mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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:
parent
31c05415f5
commit
9f674e48c1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue