lkml.org 
[lkml]   [2023]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] cxgbit: check skb dequeue result in cxgbit_send_tx_flowc_wr()
Date

>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.

\
 
 \ /
  Last update: 2023-04-10 13:49    [W:0.171 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site