On Wed, Dec 20, 2023 at 12:58 AM Harman Kalra <hka...@marvell.com> wrote: > > Configuring the hardware resources used by the eswitch device. > > Signed-off-by: Harman Kalra <hka...@marvell.com> > --- > drivers/net/cnxk/cnxk_eswitch.c | 206 ++++++++++++++++++++++++++++++++ > 1 file changed, 206 insertions(+) >
> + > static int > cnxk_eswitch_dev_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device > *pci_dev) > { > @@ -433,6 +630,12 @@ cnxk_eswitch_dev_probe(struct rte_pci_driver *pci_drv, > struct rte_pci_device *pc > return rc; > +free_mem: > + if (mz) Not needed as rte_memzone_free has the check > + rte_memzone_free(mz); > fail: > return rc; > } > -- > 2.18.0 >