]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: fix NULL pointer dereference in cifs_find_smb_ses
authorJeff Layton <jlayton@redhat.com>
Wed, 18 Aug 2010 17:13:39 +0000 (13:13 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:23 +0000 (11:21 -0400)
commit8154cce6e60779e8e09b79f692344f6d4a9bfd08
tree8eef14f0860dc15a85e5c3f77a3b7c13444ed932
parent88720224330a655ab6268e20109b65b11cfd7f6a
cifs: fix NULL pointer dereference in cifs_find_smb_ses

commit fc87a40677bbe0937e2ff0642c7e83c9a4813f3d upstream.

cifs_find_smb_ses assumes that the vol->password field is a valid
pointer, but that's only the case if a password was passed in via
the options string. It's possible that one won't be if there is
no mount helper on the box.

Reported-by: diabel <gacek-2004@wp.pl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/cifs/connect.c