提交 0ea05ce7 编写于 作者: D David S. Miller

bna: Check for NULL before deref in bnad_cb_tx_cleanup

Reported-by: NJiri Slaby <jirislaby@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册