Fix common misspellings
[linux-2.6-block.git] / drivers / net / cxgb3 / sge.c
index 5d72bda543894c3a990d959c8f7bcff17f270d08..bfa2d56af1ee2aa68217022e8ba741994844e0bd 100644 (file)
@@ -199,7 +199,7 @@ static inline void refill_rspq(struct adapter *adapter,
  *     need_skb_unmap - does the platform need unmapping of sk_buffs?
  *
  *     Returns true if the platform needs sk_buff unmapping.  The compiler
- *     optimizes away unecessary code if this returns true.
+ *     optimizes away unnecessary code if this returns true.
  */
 static inline int need_skb_unmap(void)
 {
@@ -296,8 +296,10 @@ static void free_tx_desc(struct adapter *adapter, struct sge_txq *q,
                if (d->skb) {   /* an SGL is present */
                        if (need_unmap)
                                unmap_skb(d->skb, q, cidx, pdev);
-                       if (d->eop)
+                       if (d->eop) {
                                kfree_skb(d->skb);
+                               d->skb = NULL;
+                       }
                }
                ++d;
                if (++cidx == q->size) {