aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
authorGravatar Jeff Layton <jlayton@redhat.com> 2012-12-10 06:10:45 -0500
committerGravatar Steve French <smfrench@gmail.com> 2012-12-11 11:48:49 -0600
commit62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 (patch)
treef1d331829b62e57c9307dc037ac2e1321946df1f /fs/cifs/dir.c
parentcifs: fix SID binary to string conversion (diff)
downloadlinux-62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1.tar.gz
linux-62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1.tar.bz2
linux-62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1.zip
cifs: clean up handling of unc= option
Make sure we free any existing memory allocated for vol->UNC, just in case someone passes in multiple unc= options. Get rid of the check for too long a UNC. The check for >300 bytes seems arbitrary. We later copy this into the tcon->treeName, for instance and it's a lot shorter than 300 bytes. Eliminate an extra kmalloc and copy as well. Just set the vol->UNC directly with the contents of match_strdup. Establish that the UNC should be stored with '\\' delimiters. Use convert_delimiter to change it in place in the vol->UNC. Finally, move the check for a malformed UNC into cifs_parse_mount_options so we can catch that situation earlier. Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/dir.c')
0 files changed, 0 insertions, 0 deletions