]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CIFS] 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)
committerSteve French <sfrench@us.ibm.com>
Sat, 21 Feb 2009 03:37:09 +0000 (03:37 +0000)
commit69765529d701c838df19ea1f5ad2f33a528261ae
tree229ce1fda799ac8f6553a87ed05516dd675b3eec
parent44f68fadd865bb288ebdcea2b602f0b1cab27a0c
[CIFS] Fix oops in cifs_strfromUCS_le mounting to servers which do not specify their OS

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>
CC: stable <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/sess.c