Comments

When we inject aer errors to the target pcie device by aer_inject module, the pci_ops of pci
bus which the target device is on will be assigned to pci_ops_aer.So if the target pci device
is a bridge, once we hot-remove and hot-add the bridge, the newly created child bus's pci_ops
will be assigned to pci_ops_aer too.Now every access to the child bus's devices will result to
system panic, because it get a NULL pci_ops in pci_read_aer/pci_write_aer.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>Signed-off-by: Jiang Liu <jiang.liu@huawei.com>Reviewed-by: Sven Dietrich <Sven.Dietrich@huawei.com>
---
drivers/pci/pcie/aer/aer_inject.c | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)