]> git.baikalelectronics.ru Git - kernel.git/commit
net: bgmac: Fix infinite loop in bgmac_dma_tx_add()
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 15 Jul 2016 22:42:52 +0000 (15:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 23:03:47 +0000 (16:03 -0700)
commit749b164258b11dfd13b949787008a6476a3498fd
tree73991452764e36e6e42e149141ec1680bff58f39
parentf9da98f7cff6489e343c9a7cc8e7fe1399943083
net: bgmac: Fix infinite loop in bgmac_dma_tx_add()

Nothing is decrementing the index "i" while we are cleaning up the
fragments we could not successful transmit.

Fixes: 69bb3140d3df7 ("bgmac: implement scatter/gather support")
Reported-by: coverity (CID 1352048)
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c