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

The userspace side on MW made a mistake and never actually used the udata
driver structure that was defined so it always passes 0 length. Keep the
kernel structure but this conversion has to permit 0 length as well.

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