Преглед изворни кода

Merge trunk revision 2356:
r2356 | sdake | 2009-07-10 04:49:51 -0700 (Fri, 10 Jul 2009) | 2 lines

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



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2420 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake пре 16 година
родитељ
комит
d3a762fde5
1 измењених фајлова са 1 додато и 1 уклоњено
  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);