projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e919305
)
leak in hostfs_unlink()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 7 Jun 2010 03:19:04 +0000
(23:19 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:48:14 +0000
(16:48 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 79783a0b2f4d0280069c791315ad847724aeeba4..8130ce93a06a7fd25e9a962eca7bb43a17e3f51a 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-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;