Re: refcount leak in pci_get_device()?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alex Chiang <achiang@...>, <gregkh@...>, <linux-pci@...>, <linux-kernel@...>
Date: Thursday, August 21, 2008 - 4:25 pm

On Thu, Aug 21, 2008 at 02:19:18PM -0600, Alex Chiang wrote:

In particular, I'd like to know whether this should be fixed by
pci_get_dev_by_id() decrementing the refcount of from/dev_start,
pci_get_subsys() decrementing 'from', or by bus_find_device()
decrementing 'start'.  It looks like bus_find_device() is the place
where this should logically happen, but the kerneldoc doesn't document
the intended behaviour.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
refcount leak in pci_get_device()?, Alex Chiang, (Thu Aug 21, 4:19 pm)
Re: refcount leak in pci_get_device()?, Greg KH, (Thu Aug 21, 4:40 pm)
Re: refcount leak in pci_get_device()?, Matthew Wilcox, (Thu Aug 21, 4:25 pm)
Re: refcount leak in pci_get_device()?, Greg KH, (Thu Aug 21, 4:47 pm)
Re: refcount leak in pci_get_device()?, Jesse Barnes, (Thu Aug 21, 6:23 pm)
Re: refcount leak in pci_get_device()?, Henrique de Moraes Holschuh..., (Thu Aug 21, 9:04 pm)
Re: refcount leak in pci_get_device()?, Henrique de Moraes Holschuh..., (Thu Aug 21, 9:09 pm)
Re: refcount leak in pci_get_device()?, Alex Chiang, (Thu Aug 21, 6:14 pm)
RE: refcount leak in pci_get_device()?, Zhao, Yu, (Sat Aug 30, 12:23 am)
Re: refcount leak in pci_get_device()?, Greg KH, (Sat Aug 30, 1:37 am)
RE: refcount leak in pci_get_device()?, Zhao, Yu, (Sat Aug 30, 2:20 am)
[PATCH] PCI Hotplug: fakephp: fix deadlock... again, Alex Chiang, (Mon Sep 1, 2:40 pm)
Re: [PATCH] PCI Hotplug: fakephp: fix deadlock... again, Matthew Wilcox, (Mon Sep 1, 8:10 pm)
Re: [PATCH] PCI Hotplug: fakephp: fix deadlock... again, Jesse Barnes, (Tue Sep 9, 12:12 am)
Re: [PATCH] PCI Hotplug: fakephp: fix deadlock... again, Matthew Wilcox, (Tue Sep 9, 12:27 am)
Re: [PATCH] PCI Hotplug: fakephp: fix deadlock... again, Andrew Patterson, (Tue Sep 9, 1:32 am)