]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/pvrdma: Use ib_copy_validate_udata_in() for srq
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 25 Mar 2026 21:26:51 +0000 (18:26 -0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 31 Mar 2026 07:11:01 +0000 (03:11 -0400)
commit3268330fa84ff7bb678f86ee082116c1c5c150bb
tree5c5d38ebc36eb067d7c93a37ec9055d6d3d51131
parent54b3bce9721141f6aee4909591b5c02e7ba4bd7b
RDMA/pvrdma: Use ib_copy_validate_udata_in() for srq

struct pvrdma_create_srq was introduced when the driver was first
merged but was never used. At that point it had only buf_addr. Later
when SRQ was introduced the struct was expanded. So unlike the other
cases that grab the first struct member based on git blame this
uses the entire struct.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c