diff options
author | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2020-07-09 19:13:59 -0400 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2020-07-22 22:30:04 +0200 |
commit | a83d381e5455cc14f6ed157a86a35379b850fbbb (patch) | |
tree | be487adec3e6ef30fde5b0419e1c107970566422 /src | |
parent | 273b9a1ccc2466a24d5acd009a05c780017461b6 (diff) |
panfrost: Fix write to free'd memory
No clue how this worked before.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Fixes: 82f18b713ac ("panfrost: Keep track of active BOs")
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5859>
(cherry picked from commit 37d89e0f93601e520edcdc41dc68197dff736c1e)
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/encoder/pan_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/encoder/pan_bo.c b/src/panfrost/encoder/pan_bo.c index 32fc84e1363..002f3c315a9 100644 --- a/src/panfrost/encoder/pan_bo.c +++ b/src/panfrost/encoder/pan_bo.c @@ -493,7 +493,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); |