ceph: fix invalid pointer access if get_quota_realm return ERR_PTR