From: OGAWA Hirofumi Date: Mon, 11 Jan 2010 18:37:45 +0000 (+0900) Subject: ocfs2: Fix refcnt leak on ocfs2_fast_follow_link() error path X-Git-Tag: v2.6.33-rc8~38^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd473fdf1d8a7531e0955480cd129f9c1e8b8a3;p=pandora-kernel.git ocfs2: Fix refcnt leak on ocfs2_fast_follow_link() error path If ->follow_link handler returns an error, it should decrement nd->path refcnt. But ocfs2_fast_follow_link() doesn't decrement. This patch fixes the problem by using nd_set_link() style error handling instead of playing with nd->path. Signed-off-by: OGAWA Hirofumi Signed-off-by: Joel Becker --- Reading git-diff-tree failed