From: Ilya Dryomov Date: Tue, 9 Aug 2016 14:12:09 +0000 (+0200) Subject: ceph: initialize pathbase in the !dentry case in encode_caps_cb() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4eacd4cb3a7c4794688ef4fad5d01f3a532a58e9;p=linux-beck.git 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 Reviewed-by: Alex Elder --- 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);