Hi Bjorn, I reworked the patch as suggested, would you please kindly review the patch? By the way, the use-after-free issue would not impact DPC, according to PCI Express Base Specification Revision 4.0 Version 0.3 The DPC "capability may be implemented by a Root Port or a Switch Downstream Port. It is not applicable to any other Device/Port type." The use-after-free only happens on a non-bridge device, so it won't impact root/switch port. Thank you very much. Thomas