Merge "gralloc: layercount validation check"

This commit is contained in:
Linux Build Service Account
2018-04-27 16:55:26 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -52,7 +52,7 @@ QtiMapper::QtiMapper() {
bool QtiMapper::ValidDescriptor(const IMapper::BufferDescriptorInfo &bd) {
if (bd.width == 0 || bd.height == 0 || (static_cast<int32_t>(bd.format) <= 0) ||
bd.layerCount != 1) {
bd.layerCount <= 0) {
return false;
}