Skip to content

Commit

Permalink
ceph: initialize pathbase in the !dentry case in encode_caps_cb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
idryomov committed Aug 9, 2016
1 parent d873484 commit 4eacd4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4eacd4c

Please sign in to comment.