Re: [PATCH] PCI hotplug : Switch to pci_get_bus_and_slot instead of deprecated pci_find_slot.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: JoonwooPark <joonwpark81@...>
Cc: <linux-kernel@...>, <kristen.c.accardi@...>
Date: Monday, October 1, 2007 - 2:10 am

On Mon, Oct 01, 2007 at 12:09:07PM +0900, JoonwooPark wrote:

Close, but you need to free the reference that you now have grabed.  As
is, this patch will cause a memory leak and cause bad things to happen
:(

Take a look at the documentation for the pci_get_bus_and_slot()
function, it's not as easy as a simple search-and-replace.

thanks,

greg k-h
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] PCI hotplug : Switch to pci_get_bus_and_slot ins..., Greg KH, (Mon Oct 1, 2:10 am)