Commit 0ea05ce7 authored by David S. Miller's avatar David S. Miller

bna: Check for NULL before deref in bnad_cb_tx_cleanup

Reported-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9ca7f876
...@@ -867,11 +867,12 @@ bnad_cb_tx_resume(struct bnad *bnad, struct bna_tcb *tcb) ...@@ -867,11 +867,12 @@ bnad_cb_tx_resume(struct bnad *bnad, struct bna_tcb *tcb)
static void static void
bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb) bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb)
{ {
struct bnad_unmap_q *unmap_q = tcb->unmap_q; struct bnad_unmap_q *unmap_q;
if (!tcb || (!tcb->unmap_q)) if (!tcb || (!tcb->unmap_q))
return; return;
unmap_q = tcb->unmap_q;
if (!unmap_q->unmap_array) if (!unmap_q->unmap_array)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment