diff options
author | Anoob Soman <anoob.soman@citrix.com> | 2017-03-02 10:50:20 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-02 14:44:22 -0800 |
commit | 9f674e48c13dcbc31ac903433727837795b81efe (patch) | |
tree | 620a1971628b5a86edfdf71009ef10f8c92e6dd5 /drivers/net/xen-netback/hash.c | |
parent | 31c05415f5b471fd333fe42629788364faea8e0d (diff) | |
download | linux-9f674e48c13dcbc31ac903433727837795b81efe.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/xen-netback/hash.c')
-rw-r--r-- | drivers/net/xen-netback/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/hash.c b/drivers/net/xen-netback/hash.c index e8c5dddc54ba..3c4c58b9fe76 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; |