]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create
authorDan Aloni <dan.aloni@vastdata.com>
Tue, 25 Jan 2022 20:06:46 +0000 (22:06 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Feb 2022 14:14:26 +0000 (09:14 -0500)
commita9c10b5b3b67b3750a10c8b089b2e05f5e176e33
tree285e1b000cd75007aaa956d183dfc896735155aa
parent468d126dab45718feeb728319be20bd869a5eaa7
xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create

If there are failures then we must not leave the non-NULL pointers with
the error value, otherwise `rpcrdma_ep_destroy` gets confused and tries
free them, resulting in an Oops.

Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c