Karsten Graul
9e909956d0
net/smc: fix direct access to ib_gid_addr->ndev in smc_ib_determine_gid()
...
[ Upstream commit 41a0be3f8f6be893860b991eb10c47fc3ee09d7f ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-24 13:28:58 +01:00
..
2020-03-05 16:43:44 +01:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-02-15 12:38:38 -08:00
2019-02-15 12:38:38 -08:00
2020-03-05 16:43:47 +01:00
2019-04-12 10:50:56 -07:00
2019-04-11 11:04:08 -07:00
2019-04-11 11:04:08 -07:00
2020-10-29 09:57:23 +01:00
2019-04-12 10:50:56 -07:00
2020-09-03 11:26:40 +02:00
2020-11-24 13:28:58 +01:00
2019-02-21 10:34:37 -08:00
2019-04-11 11:04:08 -07:00
2018-11-21 16:14:56 -08:00
2019-02-04 09:11:19 -08:00
2018-11-23 17:20:32 -08:00
2019-02-21 10:34:37 -08:00
2019-11-06 17:44:32 -08:00
2019-04-12 10:50:56 -07:00
2019-10-10 19:08:41 -07:00
2018-05-04 11:45:06 -04:00
2019-08-20 12:25:14 -07:00
2018-07-23 10:57:14 -07:00
2019-02-04 09:11:19 -08:00
2019-02-04 09:11:19 -08:00
2019-04-12 10:50:56 -07:00