struct kdbus_domain *domain =
container_of(node, struct kdbus_domain, node);
- BUG_ON(!hash_empty(domain->user_hash));
+ WARN_ON(!hash_empty(domain->user_hash));
put_user_ns(domain->user_namespace);
idr_destroy(&domain->user_idr);
struct kdbus_domain_user *user =
container_of(kref, struct kdbus_domain_user, kref);
- BUG_ON(atomic_read(&user->buses) > 0);
- BUG_ON(atomic_read(&user->connections) > 0);
+ WARN_ON(atomic_read(&user->buses) > 0);
+ WARN_ON(atomic_read(&user->connections) > 0);
/*
* Lookups ignore objects with a ref-count of 0. Therefore, we can