diff options
author | 2020-11-18 22:40:38 +0100 | |
---|---|---|
committer | 2020-11-19 10:59:19 -0800 | |
commit | 41a0be3f8f6be893860b991eb10c47fc3ee09d7f (patch) | |
tree | 0e58091a226c305fefdc2b7b832ccb885f41571f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/smc: fix matching of existing link groups (diff) | |
download | wireguard-linux-41a0be3f8f6be893860b991eb10c47fc3ee09d7f.tar.xz wireguard-linux-41a0be3f8f6be893860b991eb10c47fc3ee09d7f.zip |
net/smc: fix direct access to ib_gid_addr->ndev in smc_ib_determine_gid()
Sparse complaints 3 times about:
net/smc/smc_ib.c:203:52: warning: incorrect type in argument 1 (different address spaces)
net/smc/smc_ib.c:203:52: expected struct net_device const *dev
net/smc/smc_ib.c:203:52: got struct net_device [noderef] __rcu *const ndev
Fix that by using the existing and validated ndev variable instead of
accessing attr->ndev directly.
Fixes: 5102eca9039b ("net/smc: Use rdma_read_gid_l2_fields to L2 fields")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions