fs: namei fix ->put_link on wrong inode in do_filp_open
authorNick Piggin <npiggin@kernel.dk>
Fri, 14 Jan 2011 08:42:43 +0000 (08:42 +0000)
committerNick Piggin <npiggin@kernel.dk>
Fri, 14 Jan 2011 08:42:43 +0000 (08:42 +0000)
commit7b9337aaf98f9941d0927a75217d3ff31afec609
treed61753169b24d521147116717f310dfb65d3d20d
parentf20877d94a74557b7c28b4ed8920d834c31e0ea5
fs: namei fix ->put_link on wrong inode in do_filp_open

J. R. Okajima noticed that ->put_link is being attempted on the
wrong inode, and suggested the way to fix it. I changed it a bit
according to Al's suggestion to keep an explicit link path around.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/namei.c