|
@@ -199,7 +199,7 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
|
|
"the persistent file for the dentry with name "
|
|
"the persistent file for the dentry with name "
|
|
"[%s]; rc = [%d]\n", __func__,
|
|
"[%s]; rc = [%d]\n", __func__,
|
|
ecryptfs_dentry->d_name.name, rc);
|
|
ecryptfs_dentry->d_name.name, rc);
|
|
- goto out;
|
|
|
|
|
|
+ goto out_free;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_RDONLY)
|
|
if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_RDONLY)
|
|
@@ -207,7 +207,7 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
|
|
rc = -EPERM;
|
|
rc = -EPERM;
|
|
printk(KERN_WARNING "%s: Lower persistent file is RO; eCryptfs "
|
|
printk(KERN_WARNING "%s: Lower persistent file is RO; eCryptfs "
|
|
"file must hence be opened RO\n", __func__);
|
|
"file must hence be opened RO\n", __func__);
|
|
- goto out;
|
|
|
|
|
|
+ goto out_free;
|
|
}
|
|
}
|
|
ecryptfs_set_file_lower(
|
|
ecryptfs_set_file_lower(
|
|
file, ecryptfs_inode_to_private(inode)->lower_file);
|
|
file, ecryptfs_inode_to_private(inode)->lower_file);
|