Skip to contentSkip to conversation

nfs/nfs4state: Clear pointer locations initialize assignment

PATCH New Li kunyu 1 participant 1 message Sep 6, 2022

Subsystems (2)
lore
Share & tools
lore

Li kunyu

author
#0 lore raw

PATCH 1/1 nfs/nfs4state: Clear pointer locations initialize assignment

The pointer locations are assigned first, they can be uninitialized.

---
 fs/nfs/nfs4state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4state.c +1 -1
index 9bab3e9c702a..96eca7c4e486 100644
@@ -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;
Signature · 1 line
2.18.2