]> git.itanic.dy.fi Git - linux-stable/blobdiff - drivers/net/ethernet/sfc/tx.c
sfc: fix null pointer dereference in efx_hard_start_xmit
[linux-stable] / drivers / net / ethernet / sfc / tx.c
index 138bca611341507413cb816d94fe51a269098ac5..80ed7f760bd3088735bc2a0f3cb1baec59fe8043 100644 (file)
@@ -549,7 +549,7 @@ netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb,
                 * previous packets out.
                 */
                if (!netdev_xmit_more())
-                       efx_tx_send_pending(tx_queue->channel);
+                       efx_tx_send_pending(efx_get_tx_channel(efx, index));
                return NETDEV_TX_OK;
        }