aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2019-04-11 11:17:34 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-11 11:04:08 -0700
commitf61bca58f6c36e666c2b807697f25e5e98708162 (patch)
treef02f6529ea09b2bb02f173e11e5c8c53abe69ab9 /drivers/net/ethernet/cavium
parentnet/smc: fix return code from FLUSH command (diff)
downloadlinux-dev-f61bca58f6c36e666c2b807697f25e5e98708162.tar.xz
linux-dev-f61bca58f6c36e666c2b807697f25e5e98708162.zip
net/smc: move unhash before release of clcsock
Commit <26d92e951fe0> ("net/smc: move unhash as early as possible in smc_release()") fixes one occurrence in the smc code, but the same pattern exists in other places. This patch covers the remaining occurrences and makes sure, the unhash operation is done before the smc->clcsock is released. This avoids a potential use-after-free in smc_diag_dump(). Reviewed-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium')
0 files changed, 0 insertions, 0 deletions