Commit 52417a9
ionic: Add missing err handling for queue reconfig
ionic_start_queues_reconfig returns an error code if txrx_init fails.
Handle this error code in the relevant places.
This fixes a corner case where the device could get left in a detached
state if the CMB reconfig fails and the attempt to clean up the mess
also fails. Note that calling netif_device_attach when the netdev is
already attached does not lead to unexpected behavior.
Change goto name "errout" to "err_out" to maintain consistency across
goto statements.
Fixes: 40bc471 ("ionic: add tx/rx-push support with device Component Memory Buffers")
Fixes: 6f7d6f0 ("ionic: pull reset_queues into tx_timeout handler")
Signed-off-by: Nitya Sunkad <nitya.sunkad@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent b1c936e commit 52417a9
1 file changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
| 1820 | + | |
1820 | 1821 | | |
1821 | 1822 | | |
1822 | 1823 | | |
| |||
1829 | 1830 | | |
1830 | 1831 | | |
1831 | 1832 | | |
1832 | | - | |
| 1833 | + | |
1833 | 1834 | | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
1834 | 1838 | | |
1835 | 1839 | | |
1836 | 1840 | | |
| |||
2800 | 2804 | | |
2801 | 2805 | | |
2802 | 2806 | | |
2803 | | - | |
| 2807 | + | |
2804 | 2808 | | |
2805 | 2809 | | |
2806 | 2810 | | |
2807 | | - | |
2808 | | - | |
2809 | | - | |
2810 | | - | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
2811 | 2817 | | |
2812 | 2818 | | |
2813 | | - | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
2814 | 2823 | | |
2815 | 2824 | | |
2816 | 2825 | | |
| |||
0 commit comments