Karsten Graul
ef57ed80fb
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-10-06 15:31:13 +02:00
..
2021-05-22 10:59:44 +02:00
2017-07-29 11:22:58 -07:00
2018-06-30 20:42:25 +09:00
2019-12-05 09:21:09 +01:00
2019-12-05 09:21:09 +01:00
2021-10-06 15:31:13 +02:00
2018-07-25 22:25:53 -07:00
2018-09-18 20:11:43 -07:00
2018-01-26 10:41:56 -05:00
2020-10-29 09:54:55 +01:00
2018-07-25 22:25:53 -07:00
2020-09-03 11:24:17 +02:00
2020-03-18 07:14:25 +01:00
2018-07-25 22:25:53 -07:00
2018-08-10 14:38:43 -07:00
2018-06-30 20:42:25 +09:00
2018-07-25 22:25:53 -07:00
2018-07-25 22:25:53 -07:00
2018-09-20 07:49:55 -07:00
2018-07-25 22:25:53 -07:00
2020-01-27 14:51:18 +01:00
2018-05-04 11:45:06 -04:00
2019-12-17 20:35:33 +01:00
2018-07-23 10:57:14 -07:00
2019-12-13 08:51:34 +01:00
2018-07-24 16:06:37 -06:00
2019-03-19 13:12:41 +01:00