COMPMID-1134: Fixing the Window reconstruction in gemm_native

Change-Id: Ibab955dbade4805c39cab003362be2bb3c74b166
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/130605
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
diff --git a/src/core/NEON/kernels/arm_gemm/gemm_native.hpp b/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
index 21861eb..695236b 100644
--- a/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
+++ b/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
@@ -106,7 +106,7 @@
         for(unsigned int multi = first_multi; multi <= last_multi; multi++)
         {
             const unsigned int batch_0   = (multi == first_multi) ? first_batch : 0;
-            const unsigned int batch_max = (multi == last_multi) ? last_batch : _nbatches;
+            const unsigned int batch_max = (multi == last_multi) ? last_batch : _nbatches - 1;
 
             for(unsigned int batch = batch_0; batch <= batch_max; batch++)
             {