Commit 231307df authored by Huang Guobin's avatar Huang Guobin Committed by Chuck Lever
Browse files

nfsd: Fix error return code in nfsd_file_cache_init()



Fix to return PTR_ERR() error code from the error handling case instead of
0 in function nfsd_file_cache_init(), as done elsewhere in this function.

Fixes: 65294c1f("nfsd: add a new struct file caching facility to nfsd")
Signed-off-by: default avatarHuang Guobin <huangguobin4@huawei.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent f45a444c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -685,6 +685,7 @@ nfsd_file_cache_init(void)
	if (IS_ERR(nfsd_file_fsnotify_group)) {
		pr_err("nfsd: unable to create fsnotify group: %ld\n",
			PTR_ERR(nfsd_file_fsnotify_group));
		ret = PTR_ERR(nfsd_file_fsnotify_group);
		nfsd_file_fsnotify_group = NULL;
		goto out_notifier;
	}