[PATCH] bus/vdev: fix devargs memory leak
Ye, MingjinX
mingjinx.ye at intel.com
Tue Nov 7 07:56:15 CET 2023
Hi Anatoly,
can you please take a look at this patch.
Thanks,
Mingjin
> -----Original Message-----
> From: Ye, MingjinX <mingjinx.ye at intel.com>
> Sent: Friday, September 15, 2023 4:56 PM
> To: Burakov, Anatoly <anatoly.burakov at intel.com>; dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; Zhou, YidingX
> <yidingx.zhou at intel.com>; stable at dpdk.org; Ling, WeiX
> <weix.ling at intel.com>
> Subject: RE: [PATCH] bus/vdev: fix devargs memory leak
>
> Hi Anatoly,
>
> Could you please review and provide suggestions if any.
>
> Thanks,
> Mingjin
>
> > -----Original Message-----
> > From: Ling, WeiX <weix.ling at intel.com>
> > Sent: Tuesday, September 12, 2023 5:08 PM
> > To: Ye, MingjinX <mingjinx.ye at intel.com>; dev at dpdk.org
> > Cc: Yang, Qiming <qiming.yang at intel.com>; Zhou, YidingX
> > <yidingx.zhou at intel.com>; Ye, MingjinX <mingjinx.ye at intel.com>;
> > stable at dpdk.org; Burakov, Anatoly <anatoly.burakov at intel.com>
> > Subject: RE: [PATCH] bus/vdev: fix devargs memory leak
> >
> > > -----Original Message-----
> > > From: Mingjin Ye <mingjinx.ye at intel.com>
> > > Sent: Friday, September 1, 2023 3:24 PM
> > > To: dev at dpdk.org
> > > Cc: Yang, Qiming <qiming.yang at intel.com>; Zhou, YidingX
> > > <yidingx.zhou at intel.com>; Ye, MingjinX <mingjinx.ye at intel.com>;
> > > stable at dpdk.org; Burakov, Anatoly <anatoly.burakov at intel.com>
> > > Subject: [PATCH] bus/vdev: fix devargs memory leak
> > >
> > > When a device is created by a secondary process, an empty devargs is
> > > temporarily generated and bound to it. This causes the device to not
> > > be associated with the correct devargs, and the empty devargs are
> > > not released when the resource is freed.
> > >
> > > This patch fixes the issue by matching the devargs when inserting a
> > > device in secondary process.
> > >
> > > Fixes: dda987315ca2 ("vdev: make virtual bus use its device struct")
> > > Fixes: a16040453968 ("eal: extract vdev infra")
> > > Cc: stable at dpdk.org
> > >
> > > Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>
> > > ---
> >
> > Tested-by: Wei Ling <weix.ling at intel.com>
More information about the stable
mailing list