mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
leak in hostfs_unlink()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e9193059b1
commit
f8d7e1877e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user