commit | 4eacd4cb3a7c4794688ef4fad5d01f3a532a58e9 | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <idryomov@gmail.com> | Tue Aug 09 16:12:09 2016 +0200 |
committer | Ilya Dryomov <idryomov@gmail.com> | Tue Aug 09 17:26:56 2016 +0200 |
tree | e4d98130d5ca2971b6c9da89c0214a59357330f1 | |
parent | d8734849d8007dacaa40b31ba7319ed28077141d [diff] [blame] |
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>
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index fa59a85..f72d4ae 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c
@@ -2759,6 +2759,7 @@ } else { path = NULL; pathlen = 0; + pathbase = 0; } spin_lock(&ci->i_ceph_lock);