Patch "crypto: qat - Fix missing destroy_workqueue in adf_init_aer()" has been added to the 6.11-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

    crypto: qat - Fix missing destroy_workqueue in adf_init_aer()

to the 6.11-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:
     crypto-qat-fix-missing-destroy_workqueue-in-adf_init.patch
and it can be found in the queue-6.11 subdirectory.

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



commit b9d0bd7835a9348421a398fdd80d7b7d0b7467fb
Author: Wang Hai <wanghai38@xxxxxxxxxx>
Date:   Tue Oct 29 23:05:23 2024 +0800

    crypto: qat - Fix missing destroy_workqueue in adf_init_aer()
    
    [ Upstream commit d8920a722a8cec625267c09ed40af8fd433d7f9a ]
    
    The adf_init_aer() won't destroy device_reset_wq when alloc_workqueue()
    for device_sriov_wq failed. Add destroy_workqueue for device_reset_wq to
    fix this issue.
    
    Fixes: 4469f9b23468 ("crypto: qat - re-enable sriov after pf reset")
    Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>
    Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/crypto/intel/qat/qat_common/adf_aer.c b/drivers/crypto/intel/qat/qat_common/adf_aer.c
index 04260f61d0429..a6db216f5b761 100644
--- a/drivers/crypto/intel/qat/qat_common/adf_aer.c
+++ b/drivers/crypto/intel/qat/qat_common/adf_aer.c
@@ -281,8 +281,11 @@ int adf_init_aer(void)
 		return -EFAULT;
 
 	device_sriov_wq = alloc_workqueue("qat_device_sriov_wq", 0, 0);
-	if (!device_sriov_wq)
+	if (!device_sriov_wq) {
+		destroy_workqueue(device_reset_wq);
+		device_reset_wq = NULL;
 		return -EFAULT;
+	}
 
 	return 0;
 }




[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