Browse Source

mpi/src/starpu_mpi_task_insert.c: fix case when reallocating descrs in starpu_mpi_task_insert (thanks to Jerome Robert for the BR)

Nathalie Furmento 11 years ago
parent
commit
8ef07bf6f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mpi/src/starpu_mpi_task_insert.c

+ 1 - 1
mpi/src/starpu_mpi_task_insert.c

@@ -325,7 +325,7 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
 						return ret;
 					}
 				}
-				if (nb_data > nb_allocated_data)
+				if (nb_data >= nb_allocated_data)
 				{
 					nb_allocated_data *= 2;
 					descrs = (struct starpu_data_descr *)realloc(descrs, nb_allocated_data * sizeof(struct starpu_data_descr));