Skip to content
Commit 69765529 authored by Steve French's avatar Steve French
Browse files

[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: default avatarJeff Layton <jlayton@redhat.com>
CC: stable <stable@kernel.org>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 44f68fad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment