diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 0764b66..2919c03 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h @@ -242,6 +242,12 @@ do { \ DRM_ERROR( "%s called without lock held, held %d owner %p %p\n",\ __func__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\ dev->lock.file_priv, file_priv ); \ + static int count = 0; \ + if (count < 3) { \ + dump_stack(); \ + count++; \ + BUG_ON(count == 3); \ + } \ return -EINVAL; \ } \ } while (0)