[lkml]   [2008]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] pci: Fixing drivers/pci/search.c compilation warning.
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 <>

Applied, thanks Matthew.


 \ /
  Last update: 2008-10-21 19:27    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean