Troy Kisky 7fafe80374 net: fec: update dirty_tx even if no skb
If dirty_tx isn't updated, then dma_unmap_single
can be called twice.

This fixes a
[   58.420980] ------------[ cut here ]------------
[   58.425667] WARNING: CPU: 0 PID: 377 at /home/schurig/d/mkarm/linux-4.5/lib/dma-debug.c:1096 check_unmap+0x9d0/0xab8()
[   58.436405] fec 2188000.ethernet: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x0000000000000000] [size=66 bytes]

encountered by Holger

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Tested-by: <holgerschurig@gmail.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-31 11:57:42 -07:00
..
2016-05-19 11:47:18 -07:00
2016-05-31 11:52:59 -07:00
2016-05-20 21:26:15 -07:00
2016-05-19 11:27:09 -07:00
2016-05-20 10:12:41 -07:00
2016-05-03 11:22:10 +09:00
2016-05-19 11:47:18 -07:00
2016-05-20 21:26:15 -07:00
2016-05-20 21:26:15 -07:00
2016-05-20 14:51:34 -07:00
2016-05-18 16:38:59 -07:00
2016-05-20 11:10:24 -07:00
2016-05-20 14:51:34 -07:00
2016-05-20 21:20:31 -07:00
2016-05-20 21:12:25 -07:00
2016-05-20 21:26:15 -07:00
2016-05-29 22:32:27 -07:00
2016-05-20 18:33:37 -07:00
2016-05-18 13:14:02 -07:00
2016-05-19 11:47:18 -07:00
2016-05-20 14:35:07 -07:00
2016-05-20 21:12:25 -07:00
2016-05-20 10:12:41 -07:00
2016-05-20 21:26:15 -07:00