vfs: fix double put after complete_walk()
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 6 Mar 2012 12:56:33 +0000 (13:56 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 10 Mar 2012 22:05:30 +0000 (17:05 -0500)
commit097b180ca09b581ef0dc24fbcfc1b227de3875df
tree880d5b5a0dfa28df3b4cec83bc557f2d47a459b0
parentf6940fe9092e796119af691c7f722c252f4fc524
vfs: fix double put after complete_walk()

complete_walk() already puts nd->path, no need to do it again at cleanup time.

This would result in Oopses if triggered, apparently the codepath is not too
well exercised.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c