Skip to content
/ linux Public

Commit df001db

Browse files
jgunthorpeSasha Levin
authored andcommitted
RDMA/efa: Fix typo in efa_alloc_mr()
[ Upstream commit f22c77c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 337d7b4 commit df001db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/efa/efa_verbs.c

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

15691569
if (udata && udata->inlen &&
1570-
!ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) {
1570+
!ib_is_udata_cleared(udata, 0, udata->inlen)) {
15711571
ibdev_dbg(&dev->ibdev,
15721572
"Incompatible ABI params, udata not cleared\n");
15731573
return ERR_PTR(-EINVAL);

0 commit comments

Comments
 (0)