From: Ursula Braun tx_bytes value must be updated by skb length before skb is freed. Signed-off-by: Ursula Braun --- drivers/s390/net/netiucv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-next-uschi/drivers/s390/net/netiucv.c =================================================================== --- linux-next-uschi.orig/drivers/s390/net/netiucv.c +++ linux-next-uschi/drivers/s390/net/netiucv.c @@ -739,13 +739,13 @@ static void conn_action_txdone(fsm_insta if (single_flag) { if ((skb = skb_dequeue(&conn->commit_queue))) { atomic_dec(&skb->users); - dev_kfree_skb_any(skb); if (privptr) { privptr->stats.tx_packets++; privptr->stats.tx_bytes += (skb->len - NETIUCV_HDRLEN - - NETIUCV_HDRLEN); + - NETIUCV_HDRLEN); } + dev_kfree_skb_any(skb); } } conn->tx_buff->data = conn->tx_buff->head; -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html