minigbm: mediatek: always provide munmap() with a valid address

Before this change, a NULL pointer could have been passed to munmap(),
making impossible for it to unmap previoulsy mapped memory. After this
change, munmap() always receives a valid pointer.

BUG=b:71835379 b:114699642
TEST=adb shell "am instrument -w --abi armeabi-v7a -e class\

Change-Id: Ic1b15807623209ab28d0d4ed63fe0d6ef2dcc6f8
Signed-off-by: Luigi Santivetti <>
Commit-Ready: Kazuhiro Inaba <>
Tested-by: Pin-chih Lin <>
Reviewed-by: St├ęphane Marchesin <>
Reviewed-by: Daniel Kurtz <>
Reviewed-by: Gurchetan Singh <>
1 file changed