Hello Shay, On Mon, Mar 10, 2025 at 10:45:24AM +0200, Shay Drory wrote: > Add proper cleanup when virtfn setup fails to prevent NULL pointer > dereference during device removal. The kernel oops[1] occurred due to > Incorrect error handling flow when pci_setup_device() fails. > > Fix it by introducing pci_iov_scan_device() which handle virtfn > allocation and setup properly, instead of invoking > pci_stop_and_remove_bus_device() whenever pci_setup_device is failed. > This prevents accessing partially initialized virtfn devices during > removal. I've found a regression on QuartzPro64 board with NVMe connected to PCIe port no longer probing on boot and bisected it down to this commit. When reverting this commit on top of torvalds/master the issue is also fixed.