PCI: pcie, aer: init struct aer_err_info for reuse
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Mon, 7 Sep 2009 08:09:58 +0000 (17:09 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 9 Sep 2009 20:47:32 +0000 (13:47 -0700)
commit1b4ffcf8432f7945e0bd0571f10a2f2bd1dbd850
tree1b95d1740ed46c89c28501e1d947c3c173f75436
parentf15857569613a982568be88d034555d88eead0aa
PCI: pcie, aer: init struct aer_err_info for reuse

In case of multiple errors, struct aer_err_info would be reused among
all reported devices.  So the info->status should be initialized before
recycled.  Otherwise error of one device might be reported as the error
of another device.  Also info->flags has similar problem on reporting
TLP header.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aerdrv_core.c