Skip to content

Commit f22c77c

Browse files
jgunthorperleon
authored andcommitted
RDMA/efa: Fix typo in efa_alloc_mr()
The pattern is to check the entire driver request space, not just sizeof something unrelated. Fixes: 40909f6 ("RDMA/efa: Add EFA verbs implementation") Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://patch.msgid.link/1-v1-83e918d69e73+a9-rdma_udata_rc_jgg@nvidia.com Acked-by: Michael Margolin <mrgolin@amazon.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent fd80bd7 commit f22c77c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/efa/efa_verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ static struct efa_mr *efa_alloc_mr(struct ib_pd *ibpd, int access_flags,
16611661
struct efa_mr *mr;
16621662

16631663
if (udata && udata->inlen &&
1664-
!ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) {
1664+
!ib_is_udata_cleared(udata, 0, udata->inlen)) {
16651665
ibdev_dbg(&dev->ibdev,
16661666
"Incompatible ABI params, udata not cleared\n");
16671667
return ERR_PTR(-EINVAL);

0 commit comments

Comments
 (0)