Karsten Graul
6c90731980
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>
2021-09-21 10:54:16 +01:00
..
2021-08-09 10:46:59 +01:00
2020-06-14 01:57:21 +09:00
2021-06-16 12:54:02 -07:00
2020-11-07 10:41:15 -08:00
2020-05-30 18:12:25 -07:00
2021-09-21 10:54:16 +01:00
2020-12-01 17:56:13 -08:00
2020-09-16 17:30:16 -07:00
2019-10-22 11:23:44 -07:00
2021-08-13 06:41:22 -07:00
2021-08-09 10:46:59 +01:00
2020-12-01 17:56:13 -08:00
2021-08-05 13:27:50 +01:00
2020-12-01 17:56:13 -08:00
2021-06-03 13:54:49 -07:00
2020-12-01 17:56:13 -08:00
2021-08-09 10:46:59 +01:00
2020-07-19 15:30:22 -07:00
2021-06-16 12:54:02 -07:00
2021-06-16 12:54:02 -07:00
2020-09-28 15:19:03 -07:00
2021-08-05 13:27:50 +01:00
2020-09-28 15:19:03 -07:00
2021-06-16 12:54:02 -07:00
2018-05-04 11:45:06 -04:00
2021-06-21 12:16:58 -07:00
2021-06-16 12:54:02 -07:00
2021-08-09 10:46:59 +01:00
2018-07-23 10:57:14 -07:00
2021-08-09 10:46:59 +01:00
2020-05-04 10:54:39 -07:00
2020-09-28 15:19:03 -07:00