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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhao, Yu
Date: Monday, October 27, 2008 - 12:34 am

Matthew Wilcox wrote:

Why does the caller have a reference count? I don't see we increase the 
reference count after the 'dev' is returned by following in 
pci_get_dev_by_id():

         dev = bus_find_device(&pci_bus_type, dev_start, (void *)id,
                               match_pci_dev_by_id);

And this 'dev' becomes the 'from' in the next loop, but it may be 
destroyed before the 'pci_dev_get(from)', isn't it?


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] pci: Fixing drivers/pci/search.c compilation w ..., Zhao, Yu, (Mon Oct 27, 12:34 am)