mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
NFSD: fix nfsd_minorversion(.., NFSD_AVAIL)
Current code will return 1 if the version is supported, and -1 if it isn't. This is confusing and inconsistent with the one place where this is used. So change to return 1 if it is supported, and zero if not. i.e. an error is never returned. Signed-off-by: NeilBrown <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
abcb4dacb0
commit
928c6fb3a9
1 changed files with 2 additions and 1 deletions
|
|
@ -167,7 +167,8 @@ nfsd_adjust_nfsd_versions4(void)
|
|||
|
||||
int nfsd_minorversion(u32 minorversion, enum vers_op change)
|
||||
{
|
||||
if (minorversion > NFSD_SUPPORTED_MINOR_VERSION)
|
||||
if (minorversion > NFSD_SUPPORTED_MINOR_VERSION &&
|
||||
change != NFSD_AVAIL)
|
||||
return -1;
|
||||
switch(change) {
|
||||
case NFSD_SET:
|
||||
|
|
|
|||
Loading…
Reference in a new issue