[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <43F901BD926A4E43B106BF17856F0755019414D4FC@orsmsx508.amr.corp.intel.com>
Date: Thu, 28 Jul 2011 08:44:36 -0700
From: "Rose, Gregory V" <gregory.v.rose@...el.com>
To: David Miller <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"bhutchings@...arflare.com" <bhutchings@...arflare.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>
Subject: RE: [RFC net-next PATCH 2/4] ixgbe: Reconfigure SR-IOV Init
> -----Original Message-----
> From: David Miller [mailto:davem@...emloft.net]
> Sent: Wednesday, July 27, 2011 10:27 PM
> To: Rose, Gregory V
> Cc: netdev@...r.kernel.org; bhutchings@...arflare.com; Kirsher, Jeffrey T
> 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.
Will do.
>
> > + 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.
I was ignorant of this behavior. I'll fix it.
- Greg
--
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