pcie_aer: Convert pcie_aer_init to Error
commit33848ceed79679b5c9e558b768447af2614b8db2
authorCao jin <caoj.fnst@cn.fujitsu.com>
Wed, 21 Dec 2016 08:21:30 +0000 (21 16:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:52 +0000 (10 07:02 +0200)
treed1f85e6c26a1bd748a92429496d6d193f1f18ebe
parent02ed3e7c1665205ddae052774d6f26c71d3d9b30
pcie_aer: Convert pcie_aer_init to Error

When user specify invalid value for property aer_log_max, device should
fail to create, and report appropriate message.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Acked-by: Dmitry Fleytman <dmitry@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/e1000e.c
hw/pci-bridge/ioh3420.c
hw/pci-bridge/xio3130_downstream.c
hw/pci-bridge/xio3130_upstream.c
hw/pci/pcie_aer.c
include/hw/pci/pcie_aer.h