ceph: fix dentry reference leak in ceph_encode_fh()
authorCyril Roelandt <tipecaml@gmail.com>
Tue, 18 Dec 2012 22:21:23 +0000 (14:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 23:02:11 +0000 (15:02 -0800)
commitf6af75dac3978d0b4d83939cb5d244b2a844820e
tree5d73ddf996763783ad8e65d6754cfba0cd478af6
parent88d67ee3ec52d19e52ae58ef4303464720215d3a
ceph: fix dentry reference leak in ceph_encode_fh()

dput() was not called in the error path.

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Cc: Sage Weil <sage@inktank.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ceph/export.c