ceph: initialize pathbase in the !dentry case in encode_caps_cb()
authorIlya Dryomov <idryomov@gmail.com>
Tue, 9 Aug 2016 14:12:09 +0000 (16:12 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 9 Aug 2016 15:26:56 +0000 (17:26 +0200)
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>
fs/ceph/mds_client.c

index fa59a85226b262f2fe086ec5dfc1bf6813711986..f72d4ae303b273a98ee2631d8ed3dde21a71e796 100644 (file)
@@ -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);
This page took 0.025716 seconds and 5 git commands to generate.