DragonFlyBSD Kernel Audit
DF-1585 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/i915/intel_fbc.c b/sys/dev/drm/i915/intel_fbc.c
--- a/sys/dev/drm/i915/intel_fbc.c
+++ b/sys/dev/drm/i915/intel_fbc.c
@@ -559,6 +559,7 @@
 	if (fbc->compressed_llb) {
 		i915_gem_stolen_remove_node(dev_priv, fbc->compressed_llb);
 		kfree(fbc->compressed_llb);
+		fbc->compressed_llb = NULL;
 	}
 }