Commit 4fd6dc9
net: bcmgenet: prevent duplicate calls of bcmgenet_dma_teardown
When bcmgenet_dma_teardown is called from bcmgenet_fini_dma it ends
up getting called twice from the bcmgenet_close and bcmgenet_suspend
functions (once directly and once inside the bcmgenet_fini_dma call).
This commit removes the call from bcmgenet_fini_dma and ensures that
bcmgenet_dma_teardown is called before bcmgenet_fini_dma in all paths
of execution.
Fixes: 4a0c081 ("net: bcmgenet: call bcmgenet_dma_teardown in bcmgenet_fini_dma")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 0d31450 commit 4fd6dc9
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2505 | 2505 | | |
2506 | 2506 | | |
2507 | 2507 | | |
2508 | | - | |
2509 | | - | |
2510 | | - | |
2511 | 2508 | | |
2512 | 2509 | | |
2513 | 2510 | | |
| |||
2930 | 2927 | | |
2931 | 2928 | | |
2932 | 2929 | | |
| 2930 | + | |
2933 | 2931 | | |
2934 | 2932 | | |
2935 | 2933 | | |
| |||
0 commit comments