Skip to content

Commit e43fe02

Browse files
drm/vc4: Check for the binner bo before handling OOM interrupt
Since the OOM interrupt directly deals with the binner bo, it doesn't make sense to try and handle it without a binner buffer registered. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/20190516145544.29051-4-paul.kocialkowski@bootlin.com
1 parent 65f50f9 commit e43fe02

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/gpu/drm/vc4/vc4_irq.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ vc4_overflow_mem_work(struct work_struct *work)
6464
struct vc4_exec_info *exec;
6565
unsigned long irqflags;
6666

67+
if (!bo)
68+
return;
69+
6770
bin_bo_slot = vc4_v3d_get_bin_slot(vc4);
6871
if (bin_bo_slot < 0) {
6972
DRM_ERROR("Couldn't allocate binner overflow mem\n");

0 commit comments

Comments
 (0)