mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
SUNRPC: Clear xpt_bc_xprt if xs_setup_bc_tcp failed
Don't move the assign of args->bc_xprt->xpt_bc_xprt out of xs_setup_bc_tcp, because rpc_ping (which is in rpc_create) will using it. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
d531c008d7
commit
642aab58db
@ -2982,6 +2982,8 @@ static struct rpc_xprt *xs_setup_bc_tcp(struct xprt_create *args)
|
|||||||
|
|
||||||
if (try_module_get(THIS_MODULE))
|
if (try_module_get(THIS_MODULE))
|
||||||
return xprt;
|
return xprt;
|
||||||
|
|
||||||
|
args->bc_xprt->xpt_bc_xprt = NULL;
|
||||||
xprt_put(xprt);
|
xprt_put(xprt);
|
||||||
ret = ERR_PTR(-EINVAL);
|
ret = ERR_PTR(-EINVAL);
|
||||||
out_err:
|
out_err:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user