gralloc3: [g19] check stride in validate_buffer_size

Needed to pass VTS for Android Q when using IMapper2.1

Stride must be checked and BAD_VALUE must be returned
if the stride check failed in validate_buffer_size.

Change-Id: I0cdd71cd3da08771d88622de3a63fae9268dc1e3
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
diff --git a/gralloc3/src/mali_gralloc_public_interface.cpp b/gralloc3/src/mali_gralloc_public_interface.cpp
index a352441..c50683d 100644
--- a/gralloc3/src/mali_gralloc_public_interface.cpp
+++ b/gralloc3/src/mali_gralloc_public_interface.cpp
@@ -545,6 +545,7 @@
 	{
 		ALOGW("Stride mismatch. Expected stride = %d, Buffer stride = %d",
 		                       stride, gralloc_buffer->stride);
+		return GRALLOC1_ERROR_BAD_VALUE;
 	}
 
 	return GRALLOC1_ERROR_NONE;