RE: [PATCH] cxgbit: check skb dequeue result in cxgbit_send_tx_flowc_wr()

From: Varun Prakash
Date: Mon Apr 10 2023 - 07:49:37 EST



>Skb dequeuing may end up with returning NULL if a queue is empty,
>which, in turn, may end up with further null pointer dereference.
>
>Fix it by checking the return value of skb dequeuing end returning
>before the pointer dereference.

skbs in csk->skbq are preallocated for critical events in cxgbit_alloc_csk_skb(),
so there is no need to check for NULL.