]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA: Consolidate patterns with offsetofend() to ib_copy_validate_udata_in()
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 25 Mar 2026 21:26:47 +0000 (18:26 -0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 31 Mar 2026 07:11:01 +0000 (03:11 -0400)
commitae638288b2026224ab56c18b980935b4f2dfd8d0
tree9ee32a603438680fd4460e27fe398ae2beedf6a9
parentcef2842c922cb762e9cca7bb26b9ef06ef090b52
RDMA: Consolidate patterns with offsetofend() to ib_copy_validate_udata_in()

Go treewide and consolidate all existing patterns using:

* offsetofend() and variations
* ib_is_udata_cleared()
* ib_copy_from_udata()

into a direct call to the new ib_copy_validate_udata_in().

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/efa/efa_verbs.c
drivers/infiniband/hw/irdma/verbs.c
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mlx5/qp.c