]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: fix bcmgenet_open()
authorPetri Gynther <pgynther@google.com>
Mon, 30 Mar 2015 07:29:13 +0000 (00:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 18:15:01 +0000 (14:15 -0400)
commit6b31c7df185e2e8271735b6409ddbf9627e653c5
tree6c8b260503febba0f89c8bc1d4bbfd5524b1232c
parent4a17e9b779e401c164cd020fd5c15c95b35283c9
net: bcmgenet: fix bcmgenet_open()

If bcmgenet_init_dma() fails, it cleans up after itself. Rx and Tx
DMAs are off, and NAPI instances haven't been netif_napi_add()'ed.
Therefore, we need to skip calling bcmgenet_fini_dma() on the error
handling path. bcmgenet_resume() already does this correctly.

Signed-off-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c