diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/irdma/verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 1e48077f0af4..5bb46a4d26ff 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -3633,7 +3633,7 @@ static int irdma_iw_port_immutable(struct ib_device *ibdev, u32 port_num, err = ib_query_port(ibdev, port_num, &attr); if (err) return err; - immutable->gid_tbl_len = 1; + immutable->gid_tbl_len = attr.gid_tbl_len; return 0; } |