tmqh: fix possible null dereference

Coverity ID: 1502953

As we check just on the next line my_pool against NULL, we should
not dereference it, even for debug validation
pull/7172/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 568ab841d8
commit 68fa080069

@ -338,7 +338,7 @@ void PacketPoolDestroy(void)
PktPool *my_pool = GetThreadPacketPool();
#ifdef DEBUG_VALIDATION
BUG_ON(my_pool->destroyed);
BUG_ON(my_pool && my_pool->destroyed);
#endif /* DEBUG_VALIDATION */
if (my_pool && my_pool->pending_pool != NULL) {

Loading…
Cancel
Save