From 06676253cd81415cebc25edaec86c80ea48eaf5d Mon Sep 17 00:00:00 2001 From: Ramakant Singh Date: Thu, 26 Apr 2018 19:53:50 +0530 Subject: [PATCH] gralloc: layercount validation check layercount value should not be zero. Change-Id: I439ca4f1655a4c892b4bdf02fc786c7e2838e816 --- gralloc/QtiMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gralloc/QtiMapper.cpp b/gralloc/QtiMapper.cpp index 8de28f56..bcf3549d 100644 --- a/gralloc/QtiMapper.cpp +++ b/gralloc/QtiMapper.cpp @@ -52,7 +52,7 @@ QtiMapper::QtiMapper() { bool QtiMapper::ValidDescriptor(const IMapper::BufferDescriptorInfo &bd) { if (bd.width == 0 || bd.height == 0 || (static_cast(bd.format) <= 0) || - bd.layerCount != 1) { + bd.layerCount <= 0) { return false; }