From: Al Viro Date: Sun, 10 Jun 2012 08:15:17 +0000 (-0400) Subject: namei.c: let follow_link() do put_link() on failure X-Git-Tag: v3.6-rc1~152^2~106 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d7b5aaed7d887b34f29f900244cdbd17a86637c;p=pandora-kernel.git namei.c: let follow_link() do put_link() on failure no need for kludgy "set cookie to ERR_PTR(...) because we failed before we did actual ->follow_link() and want to suppress put_link()", no pointless check in put_link() itself. Callers checked if follow_link() has failed anyway; might as well break out of their loops if that happened, without bothering to call put_link() first. [AV: folded fixes from hch] Signed-off-by: Al Viro --- Reading git-diff-tree failed