Patch "iavf: fix double unlock of crit_lock" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    iavf: fix double unlock of crit_lock

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     iavf-fix-double-unlock-of-crit_lock.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5c400f06c87d0220cab009df651253617de6fe42
Author: Stefan Assmann <sassmann@xxxxxxxxx>
Date:   Tue Aug 24 12:06:39 2021 +0200

    iavf: fix double unlock of crit_lock
    
    [ Upstream commit 54ee39439acd9f8b161703c6ad4f4e1835585277 ]
    
    The crit_lock mutex could be unlocked twice as reported here
    https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-20210823/025525.html
    
    Remove the superfluous unlock. Technically the problem was already
    present before 5ac49f3c2702 as that commit only replaced the locking
    primitive, but no functional change.
    
    Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
    Fixes: 5ac49f3c2702 ("iavf: use mutexes for locking of critical sections")
    Fixes: bac8486116b0 ("iavf: Refactor the watchdog state machine")
    Signed-off-by: Stefan Assmann <sassmann@xxxxxxxxx>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c
index 23762a7ef740..cada4e0e40b4 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_main.c
+++ b/drivers/net/ethernet/intel/iavf/iavf_main.c
@@ -1965,7 +1965,6 @@ static void iavf_watchdog_task(struct work_struct *work)
 		}
 		adapter->aq_required = 0;
 		adapter->current_op = VIRTCHNL_OP_UNKNOWN;
-		mutex_unlock(&adapter->crit_lock);
 		queue_delayed_work(iavf_wq,
 				   &adapter->watchdog_task,
 				   msecs_to_jiffies(10));



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux