linux/fs/nfs/super.c
Eric W. Biederman 4abe9a864b fs/nfs: Fix nfs_parse_devname to not modify it's argument
commit 40cc394be1 upstream.

In the rare and unsupported case of a hostname list nfs_parse_devname
will modify dev_name.  There is no need to modify dev_name as the all
that is being computed is the length of the hostname, so the computed
length can just be shorted.

Fixes: dc04589827 ("NFS: Use common device name parsing logic for NFSv4 and NFSv2/v3")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-09 22:04:04 +01:00

2902 lines
74 KiB