[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110727.222653.1937782529626247279.davem@davemloft.net>
Date: Wed, 27 Jul 2011 22:26:53 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: gregory.v.rose@...el.com
Cc: netdev@...r.kernel.org, bhutchings@...arflare.com,
jeffrey.t.kirsher@...el.com
Subject: Re: [RFC net-next PATCH 2/4] ixgbe: Reconfigure SR-IOV Init
From: Greg Rose <gregory.v.rose@...el.com>
Date: Wed, 27 Jul 2011 15:17:54 -0700
> + int i;
> + for (i = 0; i < adapter->num_vfs; i++) {
> + if (adapter->vfinfo[i].vfdev->dev_flags &
> + PCI_DEV_FLAGS_ASSIGNED) {
> + return true;
> + }
> + }
Bad formatting and indentation, please fix this.
> + pvfdev = pci_get_device(IXGBE_INTEL_VENDOR_ID, device_id, NULL);
> + while (pvfdev) {
> + if (pvfdev->devfn == thisvf_devfn)
> + break;
> + pvfdev = pci_get_device(IXGBE_INTEL_VENDOR_ID,
> + device_id, pvfdev);
> + }
> + if (pvfdev)
> + adapter->vfinfo[vfn].vfdev = pvfdev;
pci_get_*() grabs a reference to any non-NULL pci device object
returned, where does this reference get released? I scanned
all uses of x.vfdev and x->vfdev and could not find the necessary
release.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists