summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-08-09 16:12:09 +0200
committerIlya Dryomov <idryomov@gmail.com>2016-08-09 17:26:56 +0200
commit4eacd4cb3a7c4794688ef4fad5d01f3a532a58e9 (patch)
treee4d98130d5ca2971b6c9da89c0214a59357330f1 /fs/ceph
parentd8734849d8007dacaa40b31ba7319ed28077141d (diff)
downloadlinux-4eacd4cb3a7c4794688ef4fad5d01f3a532a58e9.tar.bz2
ceph: initialize pathbase in the !dentry case in encode_caps_cb()
pathbase is the base inode; set it to 0 if we've got no path. Coverity-id: 146348 Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index fa59a85226b2..f72d4ae303b2 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2759,6 +2759,7 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
} else {
path = NULL;
pathlen = 0;
+ pathbase = 0;
}
spin_lock(&ci->i_ceph_lock);