diff mbox series

[v3,02/10] Revert "drm/i915/fbc: set compressed_fb to NULL on error"

Message ID 20230602103928.1012470-3-jouni.hogander@intel.com (mailing list archive)
State New, archived
Headers show
Series Clean-up Xe FBC additions | expand

Commit Message

Hogander, Jouni June 2, 2023, 10:39 a.m. UTC
This reverts commit a85e885ec8004b465d477a37ef6dd3ea4e714bef.

As a part of clean-up we want to revert this patch and introduce required
changes as a set of patches.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 drivers/gpu/drm/i915/display/intel_fbc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index 0a9b081c18b8..3dc9620552e9 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -76,7 +76,7 @@  static int i915_gem_stolen_insert_node_in_range(struct xe_device *xe, struct xe_
 					ttm_bo_type_kernel, flags);
 	if (IS_ERR(*bo)) {
 		err = PTR_ERR(*bo);
-		*bo = NULL;
+		bo = NULL;
 		return err;
 	}
 	err = xe_bo_pin(*bo);