net: ll_temac: Fix bug causing buffer descriptor overrun
authorEsben Haabendal <esben@geanix.com>
Tue, 30 Apr 2019 07:17:56 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 18:33:30 +0000 (14:33 -0400)
commit2c9938e738a273ba315679781a9990c7d3b1831b
treeb7183204ab0089c1e0debdf53d3351345df5a0c7
parenta8c9bd3ba84084b6cca704d5b21ee0ba971b748b
net: ll_temac: Fix bug causing buffer descriptor overrun

As we are actually using a BD for both the skb and each frag contained in
it, the oldest TX BD would be overwritten when there was exactly one BD
less than needed.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c