|
@@ -9563,6 +9563,7 @@ int intel_get_load_detect_pipe(struct drm_connector *connector,
|
|
*/
|
|
*/
|
|
if (!crtc) {
|
|
if (!crtc) {
|
|
DRM_DEBUG_KMS("no pipe available for load-detect\n");
|
|
DRM_DEBUG_KMS("no pipe available for load-detect\n");
|
|
|
|
+ ret = -ENODEV;
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -9619,6 +9620,7 @@ found:
|
|
DRM_DEBUG_KMS("reusing fbdev for load-detection framebuffer\n");
|
|
DRM_DEBUG_KMS("reusing fbdev for load-detection framebuffer\n");
|
|
if (IS_ERR(fb)) {
|
|
if (IS_ERR(fb)) {
|
|
DRM_DEBUG_KMS("failed to allocate framebuffer for load-detection\n");
|
|
DRM_DEBUG_KMS("failed to allocate framebuffer for load-detection\n");
|
|
|
|
+ ret = PTR_ERR(fb);
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
|
|
|