X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Ffs_parser.c;h=460ea4206fa25cd8121271cd83407ab0074e7aac;hb=53c716412708db7000e06292fb89b2609f9a48f7;hp=0d388faa25d16aa8768f655611b0ece06b1707d3;hpb=8f6ccf6159aed1f04c6d179f61f6fb2691261e84;p=linux.git diff --git a/fs/fs_parser.c b/fs/fs_parser.c index 0d388faa25d1..460ea4206fa2 100644 --- a/fs/fs_parser.c +++ b/fs/fs_parser.c @@ -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);