Messages in this thread | | | From | Jesse Barnes <> | Subject | Re: [PATCH] pci: Fixing drivers/pci/search.c compilation warning. | Date | Tue, 21 Oct 2008 10:24:30 -0700 |
| |
On Monday, October 20, 2008 6:13 pm Matthew Wilcox wrote: > Subject: [PCI] Fix reference counting bug > > pci_get_subsys() will decrement the reference count of the device that > it starts searching from. Unfortunately, the pci_find_device() interface > will already have decremented the reference count of the device earlier, > so the device will end up losing all reference counts and be freed. > > We can fix this by incrementing the reference count of the device to > start searching from before calling pci_get_subsys(). > > Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Applied, thanks Matthew.
Jesse
| |