Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/umem: Remove redundant DMABUF ops check

ib_umem_dmabuf_get_with_dma_device() is an in-kernel function and does
not require a defensive check for the .move_notify callback. All current
callers guarantee that this callback is always present.

Link: https://patch.msgid.link/20260104-ib-core-misc-v1-1-00367f77f3a8@nvidia.com
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>

authored by

Leon Romanovsky and committed by
Leon Romanovsky
ac7dea32 aaecff5e

-3
-3
drivers/infiniband/core/umem_dmabuf.c
··· 129 129 if (check_add_overflow(offset, (unsigned long)size, &end)) 130 130 return ret; 131 131 132 - if (unlikely(!ops || !ops->move_notify)) 133 - return ret; 134 - 135 132 dmabuf = dma_buf_get(fd); 136 133 if (IS_ERR(dmabuf)) 137 134 return ERR_CAST(dmabuf);