diff options
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_irq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_irq.c b/drivers/gpu/drm/vc4/vc4_irq.c index 5af0e6ff5318..c2f539c3b6c6 100644 --- a/drivers/gpu/drm/vc4/vc4_irq.c +++ b/drivers/gpu/drm/vc4/vc4_irq.c @@ -37,7 +37,9 @@ vc4_overflow_mem_work(struct work_struct *work) struct drm_device *dev = vc4->dev; struct vc4_bo *bo; + mutex_lock(&dev->struct_mutex); bo = vc4_bo_create(dev, 256 * 1024); + mutex_unlock(&dev->struct_mutex); if (!bo) { DRM_ERROR("Couldn't allocate binner overflow mem\n"); return; |