ceph: assign the ci only when the inode isn't NULL
authorXiubo Li <xiubli@redhat.com>
Wed, 2 Mar 2022 07:29:51 +0000 (15:29 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 21 Mar 2022 12:35:16 +0000 (13:35 +0100)
commit1ad3bb28d336978e451980ca6c72be494b8fe2f1
tree6f48f3288c635db7dec66e0d66bf84f886b70546
parent322794d3355c33adcc4feace0045d85a8e4ed813
ceph: assign the ci only when the inode isn't NULL

The ceph_find_inode() may will fail and return NULL.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c