Skip to content

Commit 8e70bf2

Browse files
Colin Ian KingJ. Bruce Fields
authored andcommitted
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 <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent d8b2607 commit 8e70bf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ extern void nfs_sb_deactive(struct super_block *sb);
11781178
static __be32 nfsd4_ssc_setup_dul(struct nfsd_net *nn, char *ipaddr,
11791179
struct nfsd4_ssc_umount_item **retwork, struct vfsmount **ss_mnt)
11801180
{
1181-
struct nfsd4_ssc_umount_item *ni = 0;
1181+
struct nfsd4_ssc_umount_item *ni = NULL;
11821182
struct nfsd4_ssc_umount_item *work = NULL;
11831183
struct nfsd4_ssc_umount_item *tmp;
11841184
DEFINE_WAIT(wait);

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5531,7 +5531,7 @@ static void nfsd4_ssc_shutdown_umount(struct nfsd_net *nn)
55315531
static void nfsd4_ssc_expire_umount(struct nfsd_net *nn)
55325532
{
55335533
bool do_wakeup = false;
5534-
struct nfsd4_ssc_umount_item *ni = 0;
5534+
struct nfsd4_ssc_umount_item *ni = NULL;
55355535
struct nfsd4_ssc_umount_item *tmp;
55365536

55375537
spin_lock(&nn->nfsd_ssc_lock);

0 commit comments

Comments
 (0)