]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix suppressed return code
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 23 Oct 2020 18:48:29 +0000 (20:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Oct 2020 23:29:14 +0000 (16:29 -0700)
commit88356af5da24fe2dfa3a4587edd45a1b22ca41f0
treee2c2602b0cd78968d352ed621160909241eee918
parent21ff8100ee8c1764c361e2fff515082a73bf5fd4
net/smc: fix suppressed return code

The patch that repaired the invalid return code in smcd_new_buf_create()
missed to take care of errno ENOSPC which has a special meaning that no
more DMBEs can be registered on the device. Fix that by keeping this
errno value during the translation of the return code.

Fixes: 8cc5b24941b5 ("net/smc: fix invalid return code in smcd_new_buf_create()")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/smc_core.c