]> git.baikalelectronics.ru Git - kernel.git/commit
myri10ge: fix an incorrect free for skb in myri10ge_sw_tso
authorXiaomeng Tong <xiam0nd.tong@gmail.com>
Wed, 6 Apr 2022 03:55:56 +0000 (11:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2022 14:29:18 +0000 (15:29 +0100)
commit4c3ae13b8729f90cd3ae05b414b8f5ebc55be23f
treeebbcc7337dab250bf0a9b15f99dfac2ae919b6f2
parent85aebaefcfa4767652c6294c8ee4443a08864c65
myri10ge: fix an incorrect free for skb in myri10ge_sw_tso

All remaining skbs should be released when myri10ge_xmit fails to
transmit a packet. Fix it within another skb_list_walk_safe.

Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c