[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220906082838.4320-1-kunyu@nfschina.com>
Date: Tue, 6 Sep 2022 16:28:38 +0800
From: Li kunyu <kunyu@...china.com>
To: trond.myklebust@...merspace.com, anna@...nel.org
Cc: linux-nfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Li kunyu <kunyu@...china.com>
Subject: [PATCH] nfs/nfs4state: Clear pointer locations initialize assignment
The pointer locations are assigned first, they can be uninitialized.
Signed-off-by: Li kunyu <kunyu@...china.com>
---
fs/nfs/nfs4state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 9bab3e9c702a..96eca7c4e486 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -2099,7 +2099,7 @@ static int nfs4_purge_lease(struct nfs_client *clp)
static int nfs4_try_migration(struct nfs_server *server, const struct cred *cred)
{
struct nfs_client *clp = server->nfs_client;
- struct nfs4_fs_locations *locations = NULL;
+ struct nfs4_fs_locations *locations;
struct inode *inode;
struct page *page;
int status, result;
--
2.18.2
Powered by blists - more mailing lists