Instead of giving, to subsequent code, the appearance of there not
having been any "info" data provided, adjust the conditional guarding
SR-IOV handling.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
else if ( info->is_extfn )
pdev_type = "extended function";
else
- {
- info = NULL;
pdev_type = "device";
- }
ret = xsm_resource_plug_pci(XSM_PRIV, (seg << 16) | (bus << 8) | devfn);
if ( ret )
if ( pdev->info.is_virtfn )
pdev->info.is_extfn = pf_is_extfn;
}
- else if ( !pdev->vf_rlen[0] )
+
+ if ( !pdev->info.is_virtfn && !pdev->vf_rlen[0] )
{
unsigned int pos = pci_find_ext_capability(seg, bus, devfn,
PCI_EXT_CAP_ID_SRIOV);