cifs: fix error handling when calling cifs_parse_devname
authorJeff Layton <jlayton@redhat.com>
Fri, 24 May 2013 11:40:05 +0000 (07:40 -0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 24 May 2013 18:08:28 +0000 (13:08 -0500)
commit37d4f99b55d46d9f71f4769faf74c95adb2c1daf
tree9fd856f6ed71e2dc93409aa32ecbe98ce7793056
parent539673fff76af73c3aee96e0de10edcc97d84db3
cifs: fix error handling when calling cifs_parse_devname

When we allowed separate unc= and prefixpath= mount options, we could
ignore EINVAL errors from cifs_parse_devname. Now that they are
deprecated, we need to check for that as well and fail the mount if it's
malformed.

Also fix a later error message that refers to the unc= option.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c