summaryrefslogtreecommitdiffstats
path: root/exynos4
diff options
context:
space:
mode:
authorDominggoes Isakh <drjisakh@gmail.com>2018-08-21 23:38:45 +0200
committerShilin Victor <chrono.monochrome@gmail.com>2019-02-23 16:51:46 +0300
commitbdc65fa42b5c68eb496fc8b8da6d2bb12db4df0b (patch)
tree1416fa40e7fc1426074936b260a72aa5d53cd6ba /exynos4
parent4e89b97bc19b76b2af062b0dd69218e057c2485e (diff)
downloadhardware_samsung-bdc65fa42b5c68eb496fc8b8da6d2bb12db4df0b.tar.gz
hardware_samsung-bdc65fa42b5c68eb496fc8b8da6d2bb12db4df0b.tar.bz2
hardware_samsung-bdc65fa42b5c68eb496fc8b8da6d2bb12db4df0b.zip
Fix build errors
Diffstat (limited to 'exynos4')
-rw-r--r--exynos4/hal/libgralloc_ump/alloc_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp
index b0623a5..e566df6 100644
--- a/exynos4/hal/libgralloc_ump/alloc_device.cpp
+++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp
@@ -671,7 +671,7 @@ static int alloc_device_free(alloc_device_t* dev, buffer_handle_t handle)
}
if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) {
- if (hnd->ion_memory > 0)
+ if (hnd->ion_memory != NULL)
munmap(hnd->ion_memory, hnd->size);
ion_free(hnd->fd);
}