Skip to contentSkip to conversation

drm/nouveau: Fix missing pci_disable_device() in nouveau_pmops_runtime_resume()

PATCH New Shang XiaoJing 1 participant 1 message Nov 25, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: Fix missing pci_disable_device() in nouveau_pmops_runtime_resume()

Add missing pci_disable_device() in fail path of nouveau_do_resume().

Fixes 7bb6d4428d3d ("drm/nouveau: move the (far too many...) different s/r paths to the same place")
---
 drivers/gpu/drm/nouveau/nouveau_drm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/nouveau/nouveau_drm.c +1 -0
index fd99ec0f4257..d75cd21c1457 100644
@@ -1068,6 +1068,7 @@ nouveau_pmops_runtime_resume(struct device *dev)
 	ret = nouveau_do_resume(drm_dev, true);
 	if (ret) {
 		NV_ERROR(drm, "resume failed with: %d\n", ret);
+		pci_disable_device(pdev);
 		return ret;
 	}
 
Signature · 1 line
2.17.1