Skip to content

Commit e85ff9c

Browse files
SlawomirLabaanguy11
authored andcommitted
iavf: Fix deadlock in iavf_reset_task
There exists a missing mutex_unlock call on crit_lock in iavf_reset_task call path. Unlock the crit_lock before returning from reset task. Fixes: 5ac49f3 ("iavf: use mutexes for locking of critical sections") Signed-off-by: Slawomir Laba <slawomirx.laba@intel.com> Signed-off-by: Phani Burra <phani.r.burra@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent a472eb5 commit e85ff9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2688,6 +2688,7 @@ static void iavf_reset_task(struct work_struct *work)
26882688
reg_val);
26892689
iavf_disable_vf(adapter);
26902690
mutex_unlock(&adapter->client_lock);
2691+
mutex_unlock(&adapter->crit_lock);
26912692
return; /* Do not attempt to reinit. It's dead, Jim. */
26922693
}
26932694

0 commit comments

Comments
 (0)