display-legacy: fix gralloc module

https://github.com/Evervolv/android_hardware_qcom_display-legacy/blob/0bdc715bd4a3a93487a1ac2a82638fa0b2187f27/libgralloc/gralloc.cpp