]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Fix an error code in smc_lgr_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2022 09:34:36 +0000 (12:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Oct 2022 10:12:12 +0000 (11:12 +0100)
commitdd4eba0e737db5c0aebbb685dc12698f06b3a1ab
tree28493c88417ae94ce8e1b55ce217a5c981fbcada
parent0ff34d98a29992e2bf8ff8790bc33afa3d07fd64
net/smc: Fix an error code in smc_lgr_create()

If smc_wr_alloc_lgr_mem() fails then return an error code.  Don't return
success.

Fixes: e79ff7378e2c ("net/smc: add v2 support to the work request layer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c