Patch "PCI: endpoint: pci-epf-vntb: Fix call pci_epc_mem_free_addr() in error path" 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

    PCI: endpoint: pci-epf-vntb: Fix call pci_epc_mem_free_addr() in error path

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:
     pci-endpoint-pci-epf-vntb-fix-call-pci_epc_mem_free_.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 7a463730e6d517699026e22e02fc1b0701bf833f
Author: Frank Li <frank.li@xxxxxxx>
Date:   Wed Nov 2 10:10:10 2022 -0400

    PCI: endpoint: pci-epf-vntb: Fix call pci_epc_mem_free_addr() in error path
    
    [ Upstream commit 0c031262d2ddfb938f9668d620d7ed674771646c ]
    
    Replace pci_epc_mem_free_addr() with pci_epf_free_space() in the
    error handle path to match pci_epf_alloc_space().
    
    Link: https://lore.kernel.org/r/20221102141014.1025893-4-Frank.Li@xxxxxxx
    Fixes: e35f56bb0330 ("PCI: endpoint: Support NTB transfer between RC and EP")
    Signed-off-by: Frank Li <frank.li@xxxxxxx>
    Signed-off-by: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c
index 0ea85e1d292e..fba0179939b8 100644
--- a/drivers/pci/endpoint/functions/pci-epf-vntb.c
+++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c
@@ -557,7 +557,7 @@ static int epf_ntb_db_bar_init(struct epf_ntb *ntb)
 	return ret;
 
 err_alloc_peer_mem:
-	pci_epc_mem_free_addr(ntb->epf->epc, epf_bar->phys_addr, mw_addr, epf_bar->size);
+	pci_epf_free_space(ntb->epf, mw_addr, barno, 0);
 	return -1;
 }
 



[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