Karsten Graul
f7fb7dbdfb
net/smc: add missing error check in smc_clc_prfx_set()
...
[ Upstream commit 6c90731980655280ea07ce4b21eb97457bf86286 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-30 10:09:23 +02:00
..
2021-05-19 10:08:28 +02: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
2021-09-30 10:09:23 +02: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
2021-06-03 08:59:08 +02: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
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