08/11/2018 13:35, Stojaczyk, Dariusz: > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 08/11/2018 12:25, Stojaczyk, Dariusz: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > > > > > The devargs of a device can be replaced by a newly allocated one > > > > when trying to probe again the same device (multi-process or > > > > multi-ports scenarios). This is breaking some pointer references. > > > > > > > > It can be avoided by copying the new content, freeing the new devargs, > > > > and returning the already inserted pointer. > > > > > > > > Signed-off-by: Thomas Monjalon <tho...@monjalon.net> > > > > > > Tested-by: Darek Stojaczyk <dariusz.stojac...@intel.com> > > > > Is it fixing any use case? > > Of course it is. I was previously seeing a regression with the following > scenario: > 1. hotplug device in the primary process > 2. start a secodary process > 3. hotplug device in secondary -> primary segfaults > > And now it's working.
Good to know! Thank you