aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 65ddc5b8eb33..55da4d339293 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1076,9 +1076,9 @@ exp_export(struct nfsctl_export *nxp)
1076 err = 0; 1076 err = 0;
1077finish: 1077finish:
1078 kfree(new.ex_pathname); 1078 kfree(new.ex_pathname);
1079 if (exp) 1079 if (!IS_ERR_OR_NULL(exp))
1080 exp_put(exp); 1080 exp_put(exp);
1081 if (fsid_key && !IS_ERR(fsid_key)) 1081 if (!IS_ERR_OR_NULL(fsid_key))
1082 cache_put(&fsid_key->h, &svc_expkey_cache); 1082 cache_put(&fsid_key->h, &svc_expkey_cache);
1083 path_put(&path); 1083 path_put(&path);
1084out_put_clp: 1084out_put_clp: