[PATCH 5.10 020/118] RDMA/core: Fix null-ptr-deref in ib_core_cleanup()