Re: [PATCH] pci: Fixing drivers/pci/search.c compilation warning.

From: Jesse Barnes
Date: Tue Oct 21 2008 - 13:24:54 EST

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@xxxxxxxxxxxxxxx>

Applied, thanks Matthew.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at