diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-08-09 17:12:09 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-08-09 18:26:56 +0300 |
commit | 4eacd4cb3a7c4794688ef4fad5d01f3a532a58e9 (patch) | |
tree | e4d98130d5ca2971b6c9da89c0214a59357330f1 /fs | |
parent | d8734849d8007dacaa40b31ba7319ed28077141d (diff) | |
download | linux-4eacd4cb3a7c4794688ef4fad5d01f3a532a58e9.tar.xz |
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')
-rw-r--r-- | fs/ceph/mds_client.c | 1 |
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); |