]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/bnxt_re: improve clarity in ALLOC_PAGE handler
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 24 Sep 2025 11:01:27 +0000 (04:01 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 24 Sep 2025 13:53:37 +0000 (10:53 -0300)
commitfb0b08297ecb429b60cb2b6ed40632ce5294220c
treebe1146c45fde1cab96d621119ef3ebe36833c438
parent880245fd029a8f8ee8fd557c2681d077c1b1a959
RDMA/bnxt_re: improve clarity in ALLOC_PAGE handler

Update uverbs_copy_to call to use sizeof(dpi) instead of sizeof(length)
when copying the device page index (DPI) back to user space. Both dpi
and length are declared as u32, so this change has no functional impact
but makes the code clearer.

Link: https://patch.msgid.link/r/20250924110130.340195-1-alok.a.tiwari@oracle.com
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c