From: J. R. Okajima Date: Fri, 14 Jan 2011 03:56:04 +0000 (+0000) Subject: fs: fix do_last error case when need_reval_dot X-Git-Tag: v2.6.38-rc1~71^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20877d94a74557b7c28b4ed8920d834c31e0ea5;p=pandora-kernel.git fs: fix do_last error case when need_reval_dot When open(2) without O_DIRECTORY opens an existing dir, it should return EISDIR. In do_last(), the variable 'error' is initialized EISDIR, but it is changed by d_revalidate() which returns any positive to represent 'the target dir is valid.' Should we keep and return the initialized 'error' in this case. Signed-off-by: Nick Piggin --- Reading git-diff-tree failed