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") Signed-off-by: Shang XiaoJing <shangxiaojing@xxxxxxxxxx> --- drivers/gpu/drm/nouveau/nouveau_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index fd99ec0f4257..d75cd21c1457 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -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; } -- 2.17.1