diff options
-rw-r--r-- | drivers/net/cxgb3/sge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 5d72bda54389..f9f6645b2e61 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -296,8 +296,10 @@ static void free_tx_desc(struct adapter *adapter, struct sge_txq *q, | |||
296 | if (d->skb) { /* an SGL is present */ | 296 | if (d->skb) { /* an SGL is present */ |
297 | if (need_unmap) | 297 | if (need_unmap) |
298 | unmap_skb(d->skb, q, cidx, pdev); | 298 | unmap_skb(d->skb, q, cidx, pdev); |
299 | if (d->eop) | 299 | if (d->eop) { |
300 | kfree_skb(d->skb); | 300 | kfree_skb(d->skb); |
301 | d->skb = NULL; | ||
302 | } | ||
301 | } | 303 | } |
302 | ++d; | 304 | ++d; |
303 | if (++cidx == q->size) { | 305 | if (++cidx == q->size) { |