Skip to content

Commit 0994d21

Browse files
authored
Merge pull request #1658 from shijin-aws/fix_sizeof
providers/efa: Fix the size check in efadv_create_cq
2 parents 681467e + 696ed92 commit 0994d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/efa/verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ struct ibv_cq_ex *efadv_create_cq(struct ibv_context *ibvctx,
12851285

12861286
if (!vext_field_avail(struct efadv_cq_init_attr, wc_flags, inlen) ||
12871287
efa_attr->comp_mask ||
1288-
(inlen > sizeof(efa_attr) && !is_ext_cleared(efa_attr, inlen))) {
1288+
(inlen > sizeof(*efa_attr) && !is_ext_cleared(efa_attr, inlen))) {
12891289
verbs_err(verbs_get_ctx(ibvctx), "Compatibility issues\n");
12901290
errno = EINVAL;
12911291
return NULL;

0 commit comments

Comments
 (0)