diff --git a/src/panfrost/encoder/pan_bo.c b/src/panfrost/encoder/pan_bo.c index 53249e87301..b25e91d5d22 100644 --- a/src/panfrost/encoder/pan_bo.c +++ b/src/panfrost/encoder/pan_bo.c @@ -502,7 +502,7 @@ panfrost_bo_import(struct panfrost_device *dev, int fd) * acquired it in the meantime. */ if (p_atomic_read(&bo->refcnt) == 0) - p_atomic_set(&newbo->refcnt, 1); + p_atomic_set(&bo->refcnt, 1); else panfrost_bo_reference(bo); assert(bo->cpu);