NFSD: Fix error return code in nfsd4_interssc_connect()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 4 Jun 2021 10:12:37 +0000 (10:12 +0000)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 7 Jul 2021 00:14:41 +0000 (20:14 -0400)
commit54185267e1fe476875e649bb18e1c4254c123305
tree382fdec7f3c419b7f5eba54d26e0855f7e59c110
parentf47dc2d3013c65631bf8903becc7d88dc9d9966e
NFSD: Fix error return code in nfsd4_interssc_connect()

'status' has been overwritten to 0 after nfsd4_ssc_setup_dul(), this
cause 0 will be return in vfs_kern_mount() error case. Fix to return
nfserr_nodev in this error.

Fixes: f4e44b393389 ("NFSD: delay unmount source's export after inter-server copy completed.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c