android_kernel_motorola_sm6375/net/smc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
Makefile
smc.h
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
smc_close.c
smc_close.h
smc_core.c net/smc: fix valid DMBE buffer sizes 2020-10-29 09:57:23 +01:00
smc_core.h
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
smc_ism.h
smc_llc.c
smc_llc.h
smc_netns.h
smc_pnet.c
smc_pnet.h
smc_rx.c
smc_rx.h
smc_tx.c
smc_tx.h
smc_wr.c
smc_wr.h