diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 10151f8d8495..6298dc32adeb 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -958,7 +958,8 @@ cifs_parse_mount_options(char *options, const char *devname, | |||
958 | } | 958 | } |
959 | strcpy(vol->password, value); | 959 | strcpy(vol->password, value); |
960 | } | 960 | } |
961 | } else if (strnicmp(data, "ip", 2) == 0) { | 961 | } else if (!strnicmp(data, "ip", 2) || |
962 | !strnicmp(data, "addr", 4)) { | ||
962 | if (!value || !*value) { | 963 | if (!value || !*value) { |
963 | vol->UNCip = NULL; | 964 | vol->UNCip = NULL; |
964 | } else if (strnlen(value, INET6_ADDRSTRLEN) < | 965 | } else if (strnlen(value, INET6_ADDRSTRLEN) < |