]> git.baikalelectronics.ru Git - kernel.git/commit
fs/nfs: Fix nfs_parse_devname to not modify it's argument
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 30 Jan 2019 13:58:38 +0000 (07:58 -0600)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 22:33:55 +0000 (17:33 -0500)
commit060526af3de6a73b2a74f2b63f0e06ea46114e10
treee33e19294ff39b79f35eaf4cc711401e8865b905
parentd8ce597a849032e0e340d461cd1c4be17b4650d6
fs/nfs: Fix nfs_parse_devname to not modify it's argument

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: 5bb8bfece35b ("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>
fs/nfs/super.c