diff options
author | Anoob Soman <anoob.soman@citrix.com> | 2017-03-02 13:50:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-03 01:44:22 +0300 |
commit | 9f674e48c13dcbc31ac903433727837795b81efe (patch) | |
tree | 620a1971628b5a86edfdf71009ef10f8c92e6dd5 /drivers | |
parent | 31c05415f5b471fd333fe42629788364faea8e0d (diff) | |
download | linux-9f674e48c13dcbc31ac903433727837795b81efe.tar.xz |
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')
-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; |