am 6a6befc0: am 2754389d: gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
Merge commit '6a6befc0430820ab5d837694f1b71b63c34f8b14' into eclair-mr2-plus-aosp * commit '6a6befc0430820ab5d837694f1b71b63c34f8b14': gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
This commit is contained in:
		| @@ -386,6 +386,9 @@ static int gralloc_alloc(alloc_device_t* dev, | ||||
|         size = alignedw * alignedh * bpp; | ||||
|     } | ||||
|  | ||||
|     if ((ssize_t)size <= 0) | ||||
|         return -EINVAL; | ||||
|  | ||||
|     int err; | ||||
|     if (usage & GRALLOC_USAGE_HW_FB) { | ||||
|         err = gralloc_alloc_framebuffer(dev, size, usage, pHandle); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user