Explorar el Código

Fix segfault when using zcb api of coroipcc under certain loads.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2356 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake hace 16 años
padre
commit
90c013d787
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/coroipcc.c

+ 1 - 1
lib/coroipcc.c

@@ -964,7 +964,7 @@ coroipcc_zcb_alloc (
 		return (res);
 	}
 	map_size = size + header_size + sizeof (struct coroipcs_zc_header);
-	res = memory_map (path, "corosync_zerocopy-XXXXXX", &buf, size);
+	res = memory_map (path, "corosync_zerocopy-XXXXXX", &buf, map_size);
 	assert (res != -1);
 
 	req_coroipcc_zc_alloc.header.size = sizeof (mar_req_coroipcc_zc_alloc_t);