hv_netvsc: Allocate memory in netvsc_dma_map() with GFP_ATOMIC
authorMichael Kelley <mikelley@microsoft.com>
Mon, 6 Feb 2023 20:11:57 +0000 (12:11 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Feb 2023 04:39:26 +0000 (20:39 -0800)
commitc6aa9d3b43cd11ac13a8220368a3b0483c6751d4
tree4590299752014ef31564a09ae7356bc4fb1a3dd6
parent565b4824c39fa335cba2028a09d7beb7112f3c9a
hv_netvsc: Allocate memory in netvsc_dma_map() with GFP_ATOMIC

Memory allocations in the network transmit path must use GFP_ATOMIC
so they won't sleep.

Reported-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/lkml/8a4d08f94d3e6fe8b6da68440eaa89a088ad84f9.camel@redhat.com/
Fixes: 846da38de0e8 ("net: netvsc: Add Isolation VM support for netvsc driver")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1675714317-48577-1-git-send-email-mikelley@microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/hyperv/netvsc.c