소스 검색

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)