projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b77bd
)
pohmelfs: double-free and leak
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 17 Dec 2010 12:41:48 +0000
(07:41 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 13 Jan 2011 01:02:44 +0000
(20:02 -0500)
wrong dentry dropped...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/pohmelfs/net.c
patch
|
blob
|
history
diff --git
a/drivers/staging/pohmelfs/net.c
b/drivers/staging/pohmelfs/net.c
index
9279897
..
b2e9186
100644
(file)
--- a/
drivers/staging/pohmelfs/net.c
+++ b/
drivers/staging/pohmelfs/net.c
@@
-413,7
+413,7
@@
static int pohmelfs_readdir_response(struct netfs_state *st)
if (dentry) {
alias = d_materialise_unique(dentry, &npi->vfs_inode);
if (alias)
- dput(
dentry
);
+ dput(
alias
);
}
dput(dentry);