]> Git Repo - linux.git/commitdiff
pohmelfs: double-free and leak
authorAl Viro <[email protected]>
Fri, 17 Dec 2010 12:41:48 +0000 (07:41 -0500)
committerAl Viro <[email protected]>
Thu, 13 Jan 2011 01:02:44 +0000 (20:02 -0500)
wrong dentry dropped...

Signed-off-by: Al Viro <[email protected]>
drivers/staging/pohmelfs/net.c

index 9279897ff16188c0d018ccb15bfcf741b06e8552..b2e918622088807d83165ba3b8dde50c893708ec 100644 (file)
@@ -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);
This page took 0.045309 seconds and 4 git commands to generate.