summaryrefslogtreecommitdiff
path: root/net/smc/smc_core.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2021-09-20 21:18:14 +0200
committerDavid S. Miller <davem@davemloft.net>2021-09-21 10:54:16 +0100
commit6c90731980655280ea07ce4b21eb97457bf86286 (patch)
treeca1d883c27054476d8b85756b8ba123012e81956 /net/smc/smc_core.c
parent36747c96ed496f62dabd1dce9b0f0d5b58495b66 (diff)
downloadlwn-6c90731980655280ea07ce4b21eb97457bf86286.tar.gz
lwn-6c90731980655280ea07ce4b21eb97457bf86286.zip
net/smc: add missing error check in smc_clc_prfx_set()
Coverity stumbled over a missing error check in smc_clc_prfx_set(): *** CID 1475954: Error handling issues (CHECKED_RETURN) /net/smc/smc_clc.c: 233 in smc_clc_prfx_set() >>> CID 1475954: Error handling issues (CHECKED_RETURN) >>> Calling "kernel_getsockname" without checking return value (as is done elsewhere 8 out of 10 times). 233 kernel_getsockname(clcsock, (struct sockaddr *)&addrs); Add the return code check in smc_clc_prfx_set(). Fixes: c246d942eabc ("net/smc: restructure netinfo for CLC proposal msgs") Reported-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_core.c')
0 files changed, 0 insertions, 0 deletions