summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-max77686.c
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@amd.com>2024-02-23 14:27:40 -0800
committerPaolo Abeni <pabeni@redhat.com>2024-02-27 13:03:32 +0100
commita36b0787f074d7441f66c172745653570e09c320 (patch)
tree2c224b9976706d341b76300a7075c82b96cdd47b /drivers/rtc/rtc-max77686.c
parent3980cf16551717f81d90402bc2aa3a8dbc8d4bfd (diff)
ionic: check before releasing pci regions
AER recovery handler can trigger a PCI Reset after tearing down the device setup in the error detection handler. The PCI Reset handler will also attempt to tear down the device setup, and this second tear down needs to know that it doesn't need to call pci_release_regions() a second time. We can clear num_bars on tear down and use that to decide later if we need to clear the resources. This prevents a harmless but disturbing warning message resource: Trying to free nonexistent resource <0xXXXXXXXXXX-0xXXXXXXXXXX> Fixes: c3a910e1c47a ("ionic: fill out pci error handlers") Reviewed-by: Brett Creeley <brett.creeley@amd.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/rtc/rtc-max77686.c')
0 files changed, 0 insertions, 0 deletions