summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_dfs_ref.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-05-01 02:45:45 +0200
committerSteve French <sfrench@us.ibm.com>2009-05-01 02:49:23 +0200
commit18295796a30cada84e933d805072dc2248d54f98 (patch)
tree33bb2720165640fefc2987878a507d6797994891 /fs/cifs/cifs_dfs_ref.c
parent[CIFS] Remove unneeded QuerySymlink call and fix mapping for unmapped status (diff)
downloadlinux-18295796a30cada84e933d805072dc2248d54f98.tar.xz
linux-18295796a30cada84e933d805072dc2248d54f98.zip
cifs: fix length handling in cifs_get_name_from_search_buf
The earlier patch to move this code to use the new unicode helpers assumed that the filename strings would be null terminated. That's not always the case. Instead of passing "max_len" to the string converter, pass "min(len, max_len)", which makes it do the right thing while still keeping the parser confined to the response. Also fix up the prototypes of this function and the callers so that max_len is unsigned (like len is). Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_dfs_ref.c')
0 files changed, 0 insertions, 0 deletions