From: Dongliang Mu <hidden> Date: 2021-07-13 12:20:46
If i40e_up_complete fails in i40e_vsi_open, it goes to err_up_complete.
The label err_set_queues has an issue: if the else branch is executed,
there is no need to execute i40e_vsi_request_irq.
Fix this by adding a condition of i40e_vsi_free_irq.
Reported-by: Dongliang Mu (mudongliangabcd@gmail.com)
Fixes: 9c04cfcd4aad ("i40e: Fix error handling in i40e_vsi_open")
Fixes: c22e3c6c7912 ("i40e: prep vsi_open logic for non-netdev cases")
Signed-off-by: Dongliang Mu <redacted>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Shannon Nelson <hidden> Date: 2021-07-13 15:16:57
On 7/13/21 5:20 AM, Dongliang Mu wrote:
If i40e_up_complete fails in i40e_vsi_open, it goes to err_up_complete.
The label err_set_queues has an issue: if the else branch is executed,
there is no need to execute i40e_vsi_request_irq.
This is unnecessary: if the else branch is executed then control will
goto err_setup_rx, skipping over i40e_up_complete().
sln
quoted hunk
Fix this by adding a condition of i40e_vsi_free_irq.
Reported-by: Dongliang Mu (mudongliangabcd@gmail.com)
Fixes: 9c04cfcd4aad ("i40e: Fix error handling in i40e_vsi_open")
Fixes: c22e3c6c7912 ("i40e: prep vsi_open logic for non-netdev cases")
Signed-off-by: Dongliang Mu <redacted>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Dongliang Mu <hidden> Date: 2021-07-14 02:24:33
On Tue, Jul 13, 2021 at 11:16 PM Shannon Nelson [off-list ref] wrote:
On 7/13/21 5:20 AM, Dongliang Mu wrote:
quoted
If i40e_up_complete fails in i40e_vsi_open, it goes to err_up_complete.
The label err_set_queues has an issue: if the else branch is executed,
there is no need to execute i40e_vsi_request_irq.
This is unnecessary: if the else branch is executed then control will
goto err_setup_rx, skipping over i40e_up_complete().
Oh, yes. Thank you. Please ignore this patch.
sln
quoted
Fix this by adding a condition of i40e_vsi_free_irq.
Reported-by: Dongliang Mu (mudongliangabcd@gmail.com)
Fixes: 9c04cfcd4aad ("i40e: Fix error handling in i40e_vsi_open")
Fixes: c22e3c6c7912 ("i40e: prep vsi_open logic for non-netdev cases")
Signed-off-by: Dongliang Mu <redacted>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)