f2fs: support FS_IOC_{GET,SET}FSLABEL
[sfrench/cifs-2.6.git] / fs / fs_parser.c
index 0d388faa25d16aa8768f655611b0ece06b1707d3..460ea4206fa25cd8121271cd83407ab0074e7aac 100644 (file)
@@ -264,6 +264,7 @@ int fs_lookup_param(struct fs_context *fc,
                return invalf(fc, "%s: not usable as path", param->key);
        }
 
+       f->refcnt++; /* filename_lookup() drops our ref. */
        ret = filename_lookup(param->dirfd, f, flags, _path, NULL);
        if (ret < 0) {
                errorf(fc, "%s: Lookup failure for '%s'", param->key, f->name);