diff options
author | Steve Pfetsch <spfetsch@google.com> | 2017-10-09 12:33:47 -0700 |
---|---|---|
committer | Kevin F. Haggerty <haggertk@lineageos.org> | 2018-07-26 21:41:19 -0600 |
commit | d22c48f90b1f77b096518a3d56d8406702f12d74 (patch) | |
tree | 1f13fad52f153f612572dfd6196a1eb4e7405cea | |
parent | 48c4337192ed0e99088075cc24f2aff8df9269e3 (diff) | |
download | android_hardware_qcom_display-lineage-15.1-caf-8084.tar.gz android_hardware_qcom_display-lineage-15.1-caf-8084.tar.bz2 android_hardware_qcom_display-lineage-15.1-caf-8084.zip |
libgralloc: Fix adding offset to the mapped base addresslineage-15.1-caf-8084
Bug: 63662821
Change-Id: I722ed2560efd66e2e61a3054d7db7f6241e8e911
-rw-r--r-- | libgralloc/mapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgralloc/mapper.cpp b/libgralloc/mapper.cpp index 88d8091bf..8023de9e4 100644 --- a/libgralloc/mapper.cpp +++ b/libgralloc/mapper.cpp @@ -76,7 +76,7 @@ static int gralloc_map(gralloc_module_t const* module, return -errno; } - hnd->base = intptr_t(mappedAddress) + hnd->offset; + hnd->base = intptr_t(mappedAddress); } //Allow mapping of metadata for all buffers and SECURE_BUFFER @@ -91,7 +91,7 @@ static int gralloc_map(gralloc_module_t const* module, hnd->base_metadata = 0; return -errno; } - hnd->base_metadata = intptr_t(mappedAddress) + hnd->offset_metadata; + hnd->base_metadata = intptr_t(mappedAddress); } return 0; } |