From: Jeff Layton Date: Fri, 5 Aug 2011 13:02:40 +0000 (-0400) Subject: cifs: cope with negative dentries in cifs_get_root X-Git-Tag: v3.1-rc1~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80975d21aae2136ccae1ce914a1602dc1d8b0795;p=pandora-kernel.git cifs: cope with negative dentries in cifs_get_root The loop around lookup_one_len doesn't handle the case where it might return a negative dentry, which can cause an oops on the next pass through the loop. Check for that and break out of the loop with an error of -ENOENT if there is one. Fixes the panic reported here: https://bugzilla.redhat.com/show_bug.cgi?id=727927 Reported-by: TR Bentley Reported-by: Iain Arnell Cc: Al Viro Cc: stable@kernel.org Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed