Patch "vdpa: ifcvf: Do proper cleanup if IFCVF init fails" has been added to the 6.1-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

    vdpa: ifcvf: Do proper cleanup if IFCVF init fails

to the 6.1-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:
     vdpa-ifcvf-do-proper-cleanup-if-ifcvf-init-fails.patch
and it can be found in the queue-6.1 subdirectory.

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



commit c564f9f9f23c084650907b61e06d02f47472d942
Author: Tanmay Bhushan <007047221b@xxxxxxxxx>
Date:   Tue Dec 27 22:02:16 2022 +0100

    vdpa: ifcvf: Do proper cleanup if IFCVF init fails
    
    [ Upstream commit 6b04456e248761cf68f562f2fd7c04e591fcac94 ]
    
    ifcvf_mgmt_dev leaks memory if it is not freed before
    returning. Call is made to correct return statement
    so memory does not leak. ifcvf_init_hw does not take
    care of this so it is needed to do it here.
    
    Signed-off-by: Tanmay Bhushan <007047221b@xxxxxxxxx>
    Message-Id: <772e9fe133f21fa78fb98a2ebe8969efbbd58e3c.camel@xxxxxxxxx>
    Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
    Acked-by: Jason Wang <jasowang@xxxxxxxxxx>
    Acked-by: Zhu Lingshan <lingshan.zhu@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c
index f9c0044c6442e..44b29289aa193 100644
--- a/drivers/vdpa/ifcvf/ifcvf_main.c
+++ b/drivers/vdpa/ifcvf/ifcvf_main.c
@@ -849,7 +849,7 @@ static int ifcvf_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	ret = ifcvf_init_hw(vf, pdev);
 	if (ret) {
 		IFCVF_ERR(pdev, "Failed to init IFCVF hw\n");
-		return ret;
+		goto err;
 	}
 
 	for (i = 0; i < vf->nr_vring; i++)



[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