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>
This commit is contained in:
Jason Gunthorpe 2026-03-25 18:26:47 -03:00 • committed by Leon Romanovsky
commit ae638288b2
4 changed files with 26 additions and 120 deletions