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


    \
     
     \ /
      Last update: 2008-10-21 19:27    [W:0.023 / U:31.736 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site