Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8d7e187 authored by Al Viro's avatar Al Viro
Browse files

leak in hostfs_unlink()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e9193059
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -622,11 +622,12 @@ int hostfs_unlink(struct inode *ino, struct dentry *dentry)
	char *file;
	int err;

	if ((file = dentry_name(dentry)) == NULL)
		return -ENOMEM;
	if (append)
		return -EPERM;

	if ((file = dentry_name(dentry)) == NULL)
		return -ENOMEM;

	err = unlink_file(file);
	__putname(file);
	return err;