diff options
Diffstat (limited to 'lib/igt_panfrost.c')
-rw-r--r-- | lib/igt_panfrost.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_panfrost.c b/lib/igt_panfrost.c index 8b0c2b774..4bbb5ddf4 100644 --- a/lib/igt_panfrost.c +++ b/lib/igt_panfrost.c @@ -72,6 +72,9 @@ igt_panfrost_gem_new(int fd, size_t size) void igt_panfrost_free_bo(int fd, struct panfrost_bo *bo) { + if (!bo) + return; + if (bo->map) munmap(bo->map, bo->size); gem_close(fd, bo->handle); |