On Fri, Feb 25, 2022 at 01:57:41PM -0600, Bob Pearson wrote: > @@ -264,6 +261,12 @@ void *rxe_alloc(struct rxe_pool *pool) > struct rxe_pool_elem *elem; > void *obj; > > + if (!(pool->flags & RXE_POOL_ALLOC)) { > + pr_warn_once("%s: Pool %s must call rxe_add_to_pool\n", > + __func__, pool->name); Just make these if (WARN_ON(!(pool->flags & RXE_POOL_ALLOC))) return NULL; Jason