From: Jeff Layton Date: Tue, 7 Dec 2010 02:07:33 +0000 (-0500) Subject: cifs: fix check of error return from is_path_accessable X-Git-Tag: v2.6.37-rc6~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ceace5c6923ffbcf2b4d2e37afbffbdb5d4a67;p=pandora-kernel.git cifs: fix check of error return from is_path_accessable This function will return 0 if everything went ok. Commit 9d002df4 however added a block of code after the following check for rc == -EREMOTE. With that change and when rc == 0, doing the "goto mount_fail_check" here skips that code, leaving the tlink_tree and master_tlink pointer unpopulated. That causes an oops later in cifs_root_iget. Reported-and-Tested-by: Robbert Kouprie Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed