We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4241a70 commit 028676bCopy full SHA for 028676b
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
@@ -1441,7 +1441,9 @@ void aq_nic_deinit(struct aq_nic_s *self, bool link_down)
1441
aq_ptp_ring_free(self);
1442
aq_ptp_free(self);
1443
1444
- if (likely(self->aq_fw_ops->deinit) && link_down) {
+ /* May be invoked during hot unplug. */
1445
+ if (pci_device_is_present(self->pdev) &&
1446
+ likely(self->aq_fw_ops->deinit) && link_down) {
1447
mutex_lock(&self->fwreq_mutex);
1448
self->aq_fw_ops->deinit(self->aq_hw);
1449
mutex_unlock(&self->fwreq_mutex);
0 commit comments