dp83640: use proper function to free transmit time stamping packets
[pandora-kernel.git] / drivers / net / phy / dp83640.c
index c588a16..13e5713 100644 (file)
@@ -1192,7 +1192,7 @@ static void dp83640_txtstamp(struct phy_device *phydev,
 
        case HWTSTAMP_TX_ONESTEP_SYNC:
                if (is_sync(skb, type)) {
-                       kfree_skb(skb);
+                       skb_complete_tx_timestamp(skb, NULL);
                        return;
                }
                /* fall through */
@@ -1203,7 +1203,7 @@ static void dp83640_txtstamp(struct phy_device *phydev,
 
        case HWTSTAMP_TX_OFF:
        default:
-               kfree_skb(skb);
+               skb_complete_tx_timestamp(skb, NULL);
                break;
        }
 }