dp83640: use proper function to free transmit time stamping packets

The previous commit enforces a new rule for handling the cloned packets
for transmit time stamping. These packets must not be freed using any other
function than skb_complete_tx_timestamp. This commit fixes the one and only
driver using this API.

The driver first appeared in v3.0.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Richard Cochran 2011-10-21 00:49:16 +00:00 committed by David S. Miller
parent 9f56220fad
commit f5ff7cd1a8

View File

@ -1192,7 +1192,7 @@ static void dp83640_txtstamp(struct phy_device *phydev,
case HWTSTAMP_TX_ONESTEP_SYNC: case HWTSTAMP_TX_ONESTEP_SYNC:
if (is_sync(skb, type)) { if (is_sync(skb, type)) {
kfree_skb(skb); skb_complete_tx_timestamp(skb, NULL);
return; return;
} }
/* fall through */ /* fall through */
@ -1203,7 +1203,7 @@ static void dp83640_txtstamp(struct phy_device *phydev,
case HWTSTAMP_TX_OFF: case HWTSTAMP_TX_OFF:
default: default:
kfree_skb(skb); skb_complete_tx_timestamp(skb, NULL);
break; break;
} }
} }