summaryrefslogtreecommitdiff
path: root/init/do_mounts.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-02-19 00:16:53 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2024-03-09 17:14:51 +0300
commit698ad1a538da0b6bf969cfee630b4e3a026afb87 (patch)
treeed2c010820266d04cda083361d58657f1013e1f0 /init/do_mounts.c
parent1548036ef1204df65ca5a16e8b199c858cb80075 (diff)
downloadlinux-698ad1a538da0b6bf969cfee630b4e3a026afb87.tar.xz
NFS: Fix an off by one in root_nfs_cat()
The intent is to check if 'dest' is truncated or not. So, >= should be used instead of >, because strlcat() returns the length of 'dest' and 'src' excluding the trailing NULL. Fixes: 56463e50d1fc ("NFS: Use super.c for NFSROOT mount option parsing") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'init/do_mounts.c')
0 files changed, 0 insertions, 0 deletions