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

knet: Allow space for encapsulated messages

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Christine Caulfield пре 9 година
родитељ
комит
571f499e0a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      exec/totemknet.c

+ 2 - 1
exec/totemknet.c

@@ -969,7 +969,8 @@ int totemknet_initialize (
 
 void *totemknet_buffer_alloc (void)
 {
-	return malloc(KNET_MAX_PACKET_SIZE);
+	/* Need to have space for a message AND a struct mcast in case of encapsulated messages */
+	return malloc(KNET_MAX_PACKET_SIZE + 512);
 }
 
 void totemknet_buffer_release (void *ptr)