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-09-15 09:47:31 +02:00
2021-09-26 14:07:08 +02:00
2021-07-31 08:19:38 +02:00
2021-01-17 14:05:31 +01:00
2021-04-07 14:47:41 +02:00
2020-10-01 13:17:58 +02:00
2020-07-31 18:39:31 +02:00
2021-06-23 14:41:23 +02:00
2021-09-22 12:26:33 +02:00
2021-07-14 16:53:33 +02:00
2021-08-18 08:57:00 +02:00
2021-09-22 12:26:40 +02:00
2021-08-04 12:27:40 +02:00
2020-11-05 11:43:34 +01:00
2021-09-22 12:26:29 +02:00
2021-01-23 15:57:59 +01:00
2021-09-22 12:26:40 +02:00
2021-07-28 13:30:56 +02:00
2020-04-23 10:36:45 +02:00
2021-09-22 12:26:42 +02:00
2020-01-09 10:20:06 +01:00
2021-05-14 09:44:10 +02:00
2021-08-18 08:57:00 +02:00
2019-09-26 08:56:17 +02:00
2021-09-22 12:26:45 +02:00
2021-09-22 12:26:45 +02:00
2021-03-07 12:20:42 +01:00
2019-09-27 10:27:14 +02:00
2021-02-13 13:52:54 +01:00
2021-09-22 12:26:41 +02:00
2021-02-10 09:25:28 +01:00
2021-08-04 12:27:39 +02:00
2021-09-22 12:26:32 +02:00
2021-04-14 08:24:18 +02:00
2021-03-17 17:03:31 +01:00
2021-04-14 08:24:15 +02:00
2021-09-03 10:08:12 +02:00
2021-09-22 12:26:36 +02:00
2021-09-22 12:26:27 +02:00
2021-07-28 13:30:56 +02:00
2021-06-16 11:59:33 +02:00
2021-08-26 08:36:19 -04:00
2021-06-30 08:47:48 -04:00
2019-10-28 13:33:41 -07:00
2019-12-04 22:30:54 +01:00
2021-09-03 10:08:12 +02:00
2021-09-03 10:08:15 +02:00
2020-11-24 13:29:05 +01:00
2020-12-08 10:40:23 +01:00
2021-02-17 10:35:18 +01:00
2021-09-22 12:26:45 +02:00
2021-09-26 14:07:07 +02:00
2021-09-30 10:09:23 +02:00
2021-09-22 12:26:33 +02:00
2021-02-07 15:35:46 +01:00
2021-09-22 12:26:41 +02:00
2021-07-14 16:53:31 +02:00
2021-09-22 12:26:41 +02:00
2021-08-18 08:57:01 +02:00
2019-08-10 15:25:47 -07:00
2021-08-04 12:27:38 +02:00
2021-06-18 09:59:00 +02:00
2021-05-22 11:38:27 +02:00
2021-07-19 08:53:11 +02:00
2021-06-18 09:59:00 +02:00
2020-04-01 11:02:18 +02:00
2021-09-03 10:08:16 +02:00