OSDN Git Service

ceph: fix a NULL vs IS_ERR() check when calling ceph_lookup_inode()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2022 09:36:53 +0000 (12:36 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Nov 2022 09:29:05 +0000 (10:29 +0100)
commitf86a48667b91202d502d753c707e8576a6fe265b
treeb2055ebf8d037e5349dc5e13f00a80c2590ec2e1
parent3a4e894f36f95c63048298aaefee6e3e1a7f6a68
ceph: fix a NULL vs IS_ERR() check when calling ceph_lookup_inode()

The ceph_lookup_inode() function returns error pointers.  It never
returns NULL.

Fixes: aa87052dd965 ("ceph: fix incorrectly showing the .snap size for stat")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c