summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorBrett Creeley <brett.creeley@amd.com>2023-06-05 12:59:25 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-14 11:15:28 +0200
commit30c26b985c3eaee1488395e06983f2d9604f7f27 (patch)
tree57bf4f2695fb46cc8b3274cc86cec73b721cdff1 /drivers/soc
parent222a6bc8a7c60d19eb89cd2750236215791d5079 (diff)
downloadlinux-stable-30c26b985c3eaee1488395e06983f2d9604f7f27.tar.gz
linux-stable-30c26b985c3eaee1488395e06983f2d9604f7f27.tar.bz2
linux-stable-30c26b985c3eaee1488395e06983f2d9604f7f27.zip
virtio_net: use control_buf for coalesce params
commit accc1bf23068c1cdc4c2b015320ba856e210dd98 upstream. Commit 699b045a8e43 ("net: virtio_net: notifications coalescing support") added coalescing command support for virtio_net. However, the coalesce commands are using buffers on the stack, which is causing the device to see DMA errors. There should also be a complaint from check_for_stack() in debug_dma_map_xyz(). Fix this by adding and using coalesce params from the control_buf struct, which aligns with other commands. Cc: stable@vger.kernel.org Fixes: 699b045a8e43 ("net: virtio_net: notifications coalescing support") Reviewed-by: Shannon Nelson <shannon.nelson@amd.com> Signed-off-by: Allen Hubbe <allen.hubbe@amd.com> Signed-off-by: Brett Creeley <brett.creeley@amd.com> Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Link: https://lore.kernel.org/r/20230605195925.51625-1-brett.creeley@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions