]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5322889a1d0810dbab4c6f061bffd687b833158
tree6f48f3288c635db7dec66e0d66bf84f886b70546
parent86bbac507726b7cf496951d5232b40e4a9b87913
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