]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cifs: Fix check for tcon seal setting and fix oops on failed mount from earlier patch
authorSteve French <sfrench@us.ibm.com>
Fri, 21 Nov 2008 08:54:12 +0000 (14:24 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:36 +0000 (10:55 -0800)
commit13859b1be3243f98d2c00d349dd0f85f24219b0e
tree09bf69d406722aa4feb838b5c295ebb1e57ae22b
parentc3a37e7112eb872a5adfdfdebdc602d7a0a1ed11
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 <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Cc: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/connect.c