]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Enable refcount debugging for default debug levels
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Jun 2019 12:28:42 +0000 (13:28 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Jun 2019 11:16:08 +0000 (12:16 +0100)
refcount_t is our first line of defence against use-after-free, so let's
enable it for debugging.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190613122842.4840-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.debug

index 09aa0f4c8bf1421db84a5cd068d2b2824c47e3df..8d922bb4d95394aa1ce947246f4626f370be7cd3 100644 (file)
@@ -21,6 +21,7 @@ config DRM_I915_DEBUG
         depends on DRM_I915
         select DEBUG_FS
         select PREEMPT_COUNT
+        select REFCOUNT_FULL
         select I2C_CHARDEV
         select STACKDEPOT
         select DRM_DP_AUX_CHARDEV