lkml.org 
[lkml]   [2022]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v15 3/7] PCI: endpoint: pci-epf-vntb: fix call pci_epc_mem_free_addr at err path
    Date
    From: Frank Li <frank.li@nxp.com>

    Replace pci_epc_mem_free_addr() with pci_epf_free_space() at error handle
    path to match pci_epf_alloc_space().

    Fixes: e35f56bb0330 ("PCI: endpoint: Support NTB transfer between RC and EP")

    Signed-off-by: Frank Li <frank.li@nxp.com>
    ---
    drivers/pci/endpoint/functions/pci-epf-vntb.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c
    index 1863006cc36c..191924a83454 100644
    --- a/drivers/pci/endpoint/functions/pci-epf-vntb.c
    +++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c
    @@ -571,7 +571,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;
    }

    --
    2.34.1
    \
     
     \ /
      Last update: 2022-11-01 17:59    [W:4.655 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site