diff options
author | Dai Ngo <dai.ngo@oracle.com> | 2021-06-04 03:02:26 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-07-07 03:14:41 +0300 |
commit | f47dc2d3013c65631bf8903becc7d88dc9d9966e (patch) | |
tree | 4d0ae6d31dc297ad4531070190d919539ed45a92 /fs/nfsd/nfs4state.c | |
parent | 3518c8666f15cdd5d38878005dab1d589add1c19 (diff) | |
download | linux-f47dc2d3013c65631bf8903becc7d88dc9d9966e.tar.xz |
nfsd: fix kernel test robot warning in SSC code
Fix by initializing pointer nfsd4_ssc_umount_item with NULL instead of 0.
Replace return value of nfsd4_ssc_setup_dul with __be32 instead of int.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 6c64ce93510f..980bd8903f84 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -5514,7 +5514,7 @@ EXPORT_SYMBOL_GPL(nfsd4_ssc_init_umount_work); */ static void nfsd4_ssc_shutdown_umount(struct nfsd_net *nn) { - struct nfsd4_ssc_umount_item *ni = 0; + struct nfsd4_ssc_umount_item *ni = NULL; struct nfsd4_ssc_umount_item *tmp; spin_lock(&nn->nfsd_ssc_lock); |