diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-02-18 22:16:53 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-03-09 09:14:51 -0500 |
commit | 698ad1a538da0b6bf969cfee630b4e3a026afb87 (patch) | |
tree | ed2c010820266d04cda083361d58657f1013e1f0 /drivers/fpga/fpga-mgr.c | |
parent | 1548036ef1204df65ca5a16e8b199c858cb80075 (diff) |
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 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions