summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2026-03-25 18:27:02 -0300
committerLeon Romanovsky <leonro@nvidia.com>2026-03-31 03:18:16 -0400
commitfdcbddcd3aa13c05ac99fe1de2d5d9eeb1af0c49 (patch)
tree481250b8b75835532c0366411f76b75ee5a887b0 /include/linux/i2c/git@git.tavy.me:linux-stable.git
parent8e3e07cca00434d6430e44c310b2ab2965dfb794 (diff)
RDMA/hns: Remove the duplicate calls to ib_copy_validate_udata_in()
A udata should be read only once per ioctl, not multiple times. Multiple reads make it unclear what the content is since userspace can change it between the reads. Lift the ib_copy_validate_udata_in() out of alloc_srq_buf()/alloc_srq_db() and into hns_roce_create_srq(). Found by AI. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions