commit | f8d7e1877e5121841bc9a4d284a04dbc13f45bea | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jun 06 23:19:04 2010 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Aug 09 16:48:14 2010 -0400 |
tree | 32e48fce4398797ed52de54131362a3413924cb2 | |
parent | e9193059b1b3733695d5b80e667778311695aa73 [diff] |
leak in hostfs_unlink() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 79783a0..8130ce9 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c
@@ -622,11 +622,12 @@ 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;