fs/unionfs/: Fix dentry leak in copyup_named_dentry
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 4 Mar 2007 20:21:14 +0000 (15:21 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 01:38:36 +0000 (20:38 -0500)
commit53d9c871ea2dab96ee3ae2a693bc588a87844a78
tree3960138dd563222e8833c861efa681adcfcfc55f
parent5cd9f8941f363c1d8a5d4cefc78926af9198c895
fs/unionfs/: Fix dentry leak in copyup_named_dentry

When we chmod a directory on a readonly branch, and have to copy it up, we
forget to dput(). If this was a file, it gets dput indirectly through other
functions we call, but not if it was a directory.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/copyup.c