diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-09-26 01:58:41 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-10-02 22:51:10 +0300 |
commit | 8e70bf27fd20cc17e87150327a640e546bfbee64 (patch) | |
tree | 07b35bd98f1ecf6beb8010485f14b5f17ccb6591 /fs/nfsd/nfs4state.c | |
parent | d8b26071e65e80a348602b939e333242f989221b (diff) | |
download | linux-8e70bf27fd20cc17e87150327a640e546bfbee64.tar.xz |
NFSD: Initialize pointer ni with NULL and not plain integer 0
Pointer ni is being initialized with plain integer zero. Fix
this by initializing with NULL.
Signed-off-by: Colin Ian King <colin.king@canonical.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 88c0a5cd7b75..e49a38cd585f 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -5531,7 +5531,7 @@ static void nfsd4_ssc_shutdown_umount(struct nfsd_net *nn) static void nfsd4_ssc_expire_umount(struct nfsd_net *nn) { bool do_wakeup = false; - 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); |