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)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:38:38 +0000 (15:38 -0400)
commit31dc204489e35ea00d30e3d0ef52c39c488ab14b
treef3f72a392d290513668b24637fa27d76b856b2ff
parent6c8b6312d63f6ee42e8a25a6a4c739f7a4777bc3
rocker: fix incorrect error handling in dma_rings_init

[ Upstream commit 58d0c864e1a759a15c9df78f50ea5a5c32b3989e ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/rocker/rocker_main.c