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: 5102eca903 ("net/smc: Use rdma_read_gid_l2_fields to L2 fields")
Signed-off-by: Karsten Graul <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
|
2020-11-24 13:28:58 +01:00 |
| .. |
|
af_smc.c
|
net/smc: transfer fasync_list in case of fallback
|
2020-03-05 16:43:44 +01:00 |
|
Kconfig
|
treewide: Add SPDX license identifier - Makefile/Kconfig
|
2019-05-21 10:50:46 +02:00 |
|
Makefile
|
treewide: Add SPDX license identifier - Makefile/Kconfig
|
2019-05-21 10:50:46 +02:00 |
|
smc.h
|
net/smc: nonblocking connect rework
|
2019-04-12 10:50:56 -07:00 |
|
smc_cdc.c
|
|
|
|
smc_cdc.h
|
|
|
|
smc_clc.c
|
net/smc: no peer ID in CLC decline for SMCD
|
2020-03-05 16:43:47 +01:00 |
|
smc_clc.h
|
net/smc: improve smc_conn_create reason codes
|
2019-04-12 10:50:56 -07:00 |
|
smc_close.c
|
net/smc: wait for pending work before clcsock release_sock
|
2019-04-11 11:04:08 -07:00 |
|
smc_close.h
|
net/smc: wait for pending work before clcsock release_sock
|
2019-04-11 11:04:08 -07:00 |
|
smc_core.c
|
net/smc: fix valid DMBE buffer sizes
|
2020-10-29 09:57:23 +01:00 |
|
smc_core.h
|
net/smc: improve smc_conn_create reason codes
|
2019-04-12 10:50:56 -07:00 |
|
smc_diag.c
|
net/smc: Prevent kernel-infoleak in __smc_diag_dump()
|
2020-09-03 11:26:40 +02:00 |
|
smc_ib.c
|
net/smc: fix direct access to ib_gid_addr->ndev in smc_ib_determine_gid()
|
2020-11-24 13:28:58 +01:00 |
|
smc_ib.h
|
|
|
|
smc_ism.c
|
net/smc: fix a NULL pointer dereference
|
2019-04-11 11:04:08 -07:00 |
|
smc_ism.h
|
|
|
|
smc_llc.c
|
|
|
|
smc_llc.h
|
|
|
|
smc_netns.h
|
|
|
|
smc_pnet.c
|
net/smc: fix ethernet interface refcounting
|
2019-11-06 17:44:32 -08:00 |
|
smc_pnet.h
|
net/smc: consolidate function parameters
|
2019-04-12 10:50:56 -07:00 |
|
smc_rx.c
|
net/smc: receive pending data after RCV_SHUTDOWN
|
2019-10-10 19:08:41 -07:00 |
|
smc_rx.h
|
|
|
|
smc_tx.c
|
net/smc: make sure EPOLLOUT is raised
|
2019-08-20 12:25:14 -07:00 |
|
smc_tx.h
|
|
|
|
smc_wr.c
|
|
|
|
smc_wr.h
|
|
|