diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-11-19 00:40:38 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-19 21:59:19 +0300 |
commit | 41a0be3f8f6be893860b991eb10c47fc3ee09d7f (patch) | |
tree | 0e58091a226c305fefdc2b7b832ccb885f41571f /tools/lib/bpf/libbpf.c | |
parent | 0530bd6e6a3d5a0292a1a5f33ea980ae7e8b56ca (diff) | |
download | linux-41a0be3f8f6be893860b991eb10c47fc3ee09d7f.tar.xz |
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 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions