From: Ian Kent Date: Tue, 18 Jan 2011 04:06:04 +0000 (+0800) Subject: autofs4 - fix get_next_positive_dentry() X-Git-Tag: v2.6.38-rc1~11^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c14cc63a63e94d490ac6517a555113c30d420db4;p=pandora-kernel.git autofs4 - fix get_next_positive_dentry() The initialization condition in fs/autofs4/expire.c:get_next_positive_dentry() appears to be incorrect. If prev == NULL I believe that root should be returned. Further down, at the current dentry check for it being simple_positive() it looks like the d_lock for dentry p should be dropped instead of dentry ret, otherwise when p is assinged to ret we end up with no lock on p and a lost lock on ret, which leads to a deadlock. Signed-off-by: Ian Kent Signed-off-by: Al Viro --- Reading git-diff-tree failed