diff options
author | Weihang Li <liweihang@hisilicon.com> | 2019-06-03 05:09:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-04 01:32:50 +0300 |
commit | 661262bc3e0ecc9a1aed39c6b2a99766da2c22e2 (patch) | |
tree | 77fa6a7ea7fa61083a9199c9d2ce0e5e347f2070 /tools/perf/scripts/python/stackcollapse.py | |
parent | d9ea156297b7c2db49bf3cda11043a5ce410142f (diff) | |
download | linux-661262bc3e0ecc9a1aed39c6b2a99766da2c22e2.tar.xz |
net: hns3: add a check to pointer in error_detected and slot_reset
If we add a VF without loading hclgevf.ko and then there is a RAS error
occurs, PCIe AER will call error_detected and slot_reset of all functions,
and will get a NULL pointer when we check ad_dev->ops->handle_hw_ras_error.
This will cause a call trace and failures on handling of follow-up RAS
errors.
This patch check ae_dev and ad_dev->ops at first to solve above issues.
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions