From: Steve French Date: Fri, 21 Nov 2008 08:54:12 +0000 (+0530) Subject: cifs: Fix check for tcon seal setting and fix oops on failed mount from earlier patch X-Git-Tag: v2.6.27.8~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13859b1be3243f98d2c00d349dd0f85f24219b0e;p=pandora-kernel.git cifs: Fix check for tcon seal setting and fix oops on failed mount from earlier patch commit ab3f992983062440b4f37c666dac66d987902d91 upstream set tcon->ses earlier If the inital tree connect fails, we'll end up calling cifs_put_smb_ses with a NULL pointer. Fix it by setting the tcon->ses earlier. Acked-by: Jeff Layton Signed-off-by: Steve French Cc: Suresh Jayaraman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed