Re: [PATCH 1/2] PCI: Use local parameter pci_device_id for pci_get_subsys/class()
From: Yinghai Lu <yinghai@kernel.org>
Date: 2012-09-08 18:40:58
Also in:
linux-pci, lkml
From: Yinghai Lu <yinghai@kernel.org>
Date: 2012-09-08 18:40:58
Also in:
linux-pci, lkml
On Sat, Sep 8, 2012 at 8:34 AM, Feng Tang [off-list ref] wrote:
quoted
This makes lspci work again on my side. The caveat is, kzalloc() will zero out all data while the new local variable leaves some data uninitialized.Yes, thanks for the quick root cause and fix to the bug in my code.
Can you resubmit your patch with two extra "memset" line? Thanks Yinghai