]> git.ipfire.org Git - thirdparty/linux.git/commit
nfsd: Change the type of ek_fsidtype from int to u8 and use kstrtou8
authorSu Hui <suhui@nfschina.com>
Wed, 4 Jun 2025 03:47:26 +0000 (11:47 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:39 +0000 (12:46 -0400)
commitfdc368e96d0eaf2bc4d593753d7b4e572b4e20f2
treed78ac8f95392444f01d5bdb25a13f97c6b029e22
parentf26c93053074bba9342b74632c195a043a825ac5
nfsd: Change the type of ek_fsidtype from int to u8 and use kstrtou8

The valid values for ek_fsidtype are actually 0-7 so it's better to
change the type to u8. Also using kstrtou8() to relpace simple_strtoul(),
kstrtou8() is safer and more suitable for u8.

Suggested-by: NeilBrown <neil@brown.name>
Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/export.c
fs/nfsd/export.h
fs/nfsd/trace.h