[PATCH net-next 4/6] net: hip04: Don't free the tx skb when the buffer is not ready for xmit

Arnd Bergmann arnd at arndb.de
Wed Apr 15 07:19:59 PDT 2015


On Wednesday 15 April 2015 20:30:06 Ding Tianhong wrote:
> @@ -489,6 +487,8 @@ static int hip04_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
>  
>         /* Ensure tx_head update visible to tx reclaim */
>         smp_wmb();
> +       count++;
> +       priv->tx_head = TX_NEXT(tx_head);
>  
> 

Something is wrong here, the comment does not match the code any more, because
the smp_wmb() won't actually make the tx_head update visible.

	Arnd



More information about the linux-arm-kernel mailing list