Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c085bd51 authored by Jim Qu's avatar Jim Qu Committed by Alex Deucher
Browse files

drm/amd/amdgpu: fix console deadlock if late init failed

parent c1ae3cfa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2094,8 +2094,11 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
	}

	r = amdgpu_late_init(adev);
	if (r)
	if (r) {
		if (fbcon)
			console_unlock();
		return r;
	}

	/* pin cursors */
	list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {