From: OGAWA Hirofumi Date: Mon, 11 Jan 2010 18:36:14 +0000 (+0900) Subject: ecryptfs: Fix refcnt leak on ecryptfs_follow_link() error path X-Git-Tag: v2.6.33-rc5~25^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806892e9e12e731a0ca76c8f62ad95cf8eea9614;p=pandora-kernel.git ecryptfs: Fix refcnt leak on ecryptfs_follow_link() error path If ->follow_link handler return the error, it should decrement nd->path refcnt. But, ecryptfs_follow_link() doesn't decrement. This patch fix it by using usual nd_set_link() style error handling, instead of playing with nd->path. Signed-off-by: OGAWA Hirofumi Signed-off-by: Al Viro --- Reading git-diff-tree failed