ktls: Add missing NULL pointer check for TLS RX hardware offload.
The send tag pointer may be NULL when the ktls_reset_receive_tag() function is invoked. Add check for this. Reviewed by: gallatin @ Sponsored by: NVIDIA Networking
This commit is contained in:
parent
2b3543dbb1
commit
0e391a3197
@ -1631,8 +1631,10 @@ ktls_reset_receive_tag(void *context, int pending)
|
||||
}
|
||||
|
||||
SOCKBUF_LOCK(&so->so_rcv);
|
||||
m_snd_tag_rele(tls->snd_tag);
|
||||
mst = tls->snd_tag;
|
||||
tls->snd_tag = NULL;
|
||||
if (mst != NULL)
|
||||
m_snd_tag_rele(mst);
|
||||
|
||||
ifp = tls->rx_ifp;
|
||||
if_ref(ifp);
|
||||
|
Loading…
Reference in New Issue
Block a user