kernel_optimize_test/drivers/infiniband
Mike Marciniszyn 9d683d14f6 IB/hfi1: Correct guard on eager buffer deallocation
commit 9292f8f9a2ac42eb320bced7153aa2e63d8cc13a upstream.

The code tests the dma address which legitimately can be 0.

The code should test the kernel logical address to avoid leaking eager
buffer allocations that happen to map to a dma address of 0.

Fixes: 60368186fd ("IB/hfi1: Fix user-space buffers mapping with IOMMU enabled")
Link: https://lore.kernel.org/r/20211129191952.101968.17137.stgit@awfm-01.cornelisnetworks.com
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-14 11:32:37 +01:00
..
core RDMA/sa_query: Use strscpy_pad instead of memcpy to copy a string 2021-11-02 19:48:22 +01:00
hw IB/hfi1: Correct guard on eager buffer deallocation 2021-12-14 11:32:37 +01:00
sw RDMA/rxe: Fix wrong port_cap_flags 2021-11-18 14:04:14 +01:00
ulp IB/isert: Align target max I/O size to initiator size 2021-07-19 09:44:53 +02:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00