ソースを参照

knet: Allow space for encapsulated messages

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Christine Caulfield 8 年 前
コミット
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)