]> git.ipfire.org Git - people/ms/linux.git/commit
Fix oops in cifs_strfromUCS_le mounting to servers which do not specify their OS
authorSteve French <sfrench@us.ibm.com>
Tue, 17 Feb 2009 01:29:40 +0000 (01:29 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:31:58 +0000 (17:31 -0700)
commita402a128728e7f70cd5bce4539a22738a99f5123
tree1fb55cc41d8ce051c477ab19e2f92b936392b79d
parentf50c4f6c29b308d487f6aff666231585217dddf2
Fix oops in cifs_strfromUCS_le mounting to servers which do not specify their OS

commit 69765529d701c838df19ea1f5ad2f33a528261ae upstream.

Fixes kernel bug #10451 http://bugzilla.kernel.org/show_bug.cgi?id=10451

Certain NAS appliances do not set the operating system or network operating system
fields in the session setup response on the wire.  cifs was oopsing on the unexpected
zero length response fields (when trying to null terminate a zero length field).

This fixes the oops.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/CHANGES
fs/cifs/sess.c