All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ceph: initialize pathlen variable in reconnect_caps_cb
@ 2021-11-30 11:20 xiubli
  2021-11-30 12:07 ` Jeff Layton
  0 siblings, 1 reply; 5+ messages in thread
From: xiubli @ 2021-11-30 11:20 UTC (permalink / raw)
  To: jlayton; +Cc: idryomov, vshankar, ukernel, ceph-devel, Xiubo Li

From: Xiubo Li <xiubli@redhat.com>

Silence the potential compiler warning.

Fixes: a33f6432b3a6 (ceph: encode inodes' parent/d_name in cap reconnect message)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
 fs/ceph/mds_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 87f20ed16c6e..2fc2b0a023e4 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3711,7 +3711,7 @@ static int reconnect_caps_cb(struct inode *inode, struct ceph_cap *cap,
 	struct ceph_pagelist *pagelist = recon_state->pagelist;
 	struct dentry *dentry;
 	char *path;
-	int pathlen, err;
+	int pathlen = 0, err;
 	u64 pathbase;
 	u64 snap_follows;
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-30 14:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 11:20 [PATCH] ceph: initialize pathlen variable in reconnect_caps_cb xiubli
2021-11-30 12:07 ` Jeff Layton
2021-11-30 13:12   ` Xiubo Li
2021-11-30 13:55     ` Jeff Layton
2021-11-30 14:35     ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.