]> git.baikalelectronics.ru Git - kernel.git/commit
rocker: fix incorrect error handling in dma_rings_init
authorAditya Pakki <pakki001@umn.edu>
Fri, 12 Jun 2020 20:27:55 +0000 (15:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2020 20:37:36 +0000 (13:37 -0700)
commitdaea0f588e4bbfd8b711fa1609a8b8c3752d82ee
tree6bf7d2ee5c8908977d663e82833ad2cb1fd872f4
parente894f840a9d3807c0bb8fae1b4f755017d84ab56
rocker: fix incorrect error handling in dma_rings_init

In rocker_dma_rings_init, the goto blocks in case of errors
caused by the functions rocker_dma_cmd_ring_waits_alloc() and
rocker_dma_ring_create() are incorrect. The patch fixes the
order consistent with cleanup in rocker_dma_rings_fini().

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker_main.c