Message ID | 20230824161754.34264-4-shannon.nelson@amd.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 95e383226d6fcda6c217912f11edf8d74de9cc85 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | pds_core: error handling fixes | expand |
diff --git a/drivers/net/ethernet/amd/pds_core/core.c b/drivers/net/ethernet/amd/pds_core/core.c index 383e3311a52c..36f9b932b9e2 100644 --- a/drivers/net/ethernet/amd/pds_core/core.c +++ b/drivers/net/ethernet/amd/pds_core/core.c @@ -464,7 +464,8 @@ void pdsc_teardown(struct pdsc *pdsc, bool removing) { int i; - pdsc_devcmd_reset(pdsc); + if (!pdsc->pdev->is_virtfn) + pdsc_devcmd_reset(pdsc); pdsc_qcq_free(pdsc, &pdsc->notifyqcq); pdsc_qcq_free(pdsc, &pdsc->adminqcq);