Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
static void
bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb)
{
static void
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))
return;
if (!tcb || (!tcb->unmap_q))
return;
+ unmap_q = tcb->unmap_q;
if (!unmap_q->unmap_array)
return;
if (!unmap_q->unmap_array)
return;