summaryrefslogtreecommitdiff
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
authorDaniel N Pettersson <danielnp@axis.com>2017-04-27 12:32:36 +0300
committerSteve French <smfrench@gmail.com>2017-05-02 22:57:34 +0300
commit29bb3158cf6a5ad7b3521d1229552f375107a58c (patch)
treecd9fe00cd6a145949bf642c9bfb470f44c9570e4 /fs/cifs/misc.c
parent564277eceeca01e02b1ef3e141cfb939184601b4 (diff)
downloadlinux-29bb3158cf6a5ad7b3521d1229552f375107a58c.tar.xz
cifs: fix IPv6 link local, with scope id, address parsing
When the IP address is gotten from the UNC, use only the address part of the UNC. Else all after the percent sign in an IPv6 link local address is interpreted as a scope id. This includes the slash and share name. A scope id is expected to be an integer and any trailing characters makes the conversion to integer fail. Example of mount command that fails: mount -i -t cifs //fe80::6a05:caff:fe3e:8ffc%2/test /mnt/t -o sec=none Signed-off-by: Daniel N Pettersson <danielnp@axis.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/misc.c')
0 files changed, 0 insertions, 0 deletions