1
1

Memory check after allocation in SM fixed

This commit was SVN r18706.
Этот коммит содержится в:
Lenny Verkhovsky 2008-06-22 14:52:44 +00:00
родитель 51d833e8d1
Коммит 937380df2f

Просмотреть файл

@ -180,6 +180,9 @@ static inline int ompi_cb_fifo_init(int size_of_fifo,
fifo->head = (ompi_cb_fifo_ctl_t*)head_mpool->mpool_alloc(head_mpool,
sizeof(ompi_cb_fifo_ctl_t), getpagesize(), 0, NULL);
if ( NULL == fifo->head ){
return OMPI_ERR_OUT_OF_RESOURCE;
}
/* head address in a receiver address space */
fifo->recv_head = (ompi_cb_fifo_ctl_t*)((char*)fifo->head - offset);