Skip to content

Commit 65f280b

Browse files
committed
Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-
queue Tony Nguyen says: ==================== Intel Wired LAN Driver Updates 2021-10-06 This series contains updates to i40e and iavf drivers. Jiri Benc expands an error check to prevent infinite loop for i40e. Sylwester prevents freeing of uninitialized IRQ vector to resolve a kernel oops for i40e. Stefan Assmann fixes a double mutex unlock for iavf. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents a50a059 + 54ee394 commit 65f280b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4871,7 +4871,8 @@ static void i40e_clear_interrupt_scheme(struct i40e_pf *pf)
48714871
{
48724872
int i;
48734873

4874-
i40e_free_misc_vector(pf);
4874+
if (test_bit(__I40E_MISC_IRQ_REQUESTED, pf->state))
4875+
i40e_free_misc_vector(pf);
48754876

48764877
i40e_put_lump(pf->irq_pile, pf->iwarp_base_vector,
48774878
I40E_IWARP_IRQ_PILE_ID);
@@ -10113,7 +10114,7 @@ static int i40e_get_capabilities(struct i40e_pf *pf,
1011310114
if (pf->hw.aq.asq_last_status == I40E_AQ_RC_ENOMEM) {
1011410115
/* retry with a larger buffer */
1011510116
buf_len = data_size;
10116-
} else if (pf->hw.aq.asq_last_status != I40E_AQ_RC_OK) {
10117+
} else if (pf->hw.aq.asq_last_status != I40E_AQ_RC_OK || err) {
1011710118
dev_info(&pf->pdev->dev,
1011810119
"capability discovery failed, err %s aq_err %s\n",
1011910120
i40e_stat_str(&pf->hw, err),

drivers/net/ethernet/intel/iavf/iavf_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1965,7 +1965,6 @@ static void iavf_watchdog_task(struct work_struct *work)
19651965
}
19661966
adapter->aq_required = 0;
19671967
adapter->current_op = VIRTCHNL_OP_UNKNOWN;
1968-
mutex_unlock(&adapter->crit_lock);
19691968
queue_delayed_work(iavf_wq,
19701969
&adapter->watchdog_task,
19711970
msecs_to_jiffies(10));

0 commit comments

Comments
 (0)