]> git.baikalelectronics.ru Git - kernel.git/commit
net: mediatek: invalid buffer lookup in mtk_tx_map()
authorJohn Crispin <john@phrozen.org>
Fri, 10 Jun 2016 11:28:00 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:29:29 +0000 (23:29 -0700)
commitda76696a530d8f12058063837747622cae5c258c
tree622d3a3a1559770f89c41bacf2bf49677f114674
parentfe1372a240370c50507e60446442db046249a50f
net: mediatek: invalid buffer lookup in mtk_tx_map()

The lookup of the tx_buffer in the error path inside mtk_tx_map() uses the
wrong descriptor pointer. This looks like a copy & paste error. Change the
code to use the correct pointer.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c