@@ -261,7 +261,7 @@ static umf_result_t file_mmap_aligned(file_memory_provider_t *file_provider,
261
261
ASSERT_IS_ALIGNED (extended_size , page_size );
262
262
ASSERT_IS_ALIGNED (offset_fd , page_size );
263
263
264
- void * ptr = utils_mmap (NULL , extended_size , prot , flag , fd , offset_fd );
264
+ void * ptr = utils_mmap_file (NULL , extended_size , prot , flag , fd , offset_fd );
265
265
if (ptr == NULL ) {
266
266
LOG_PERR ("memory mapping failed" );
267
267
return UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC ;
@@ -612,8 +612,9 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
612
612
return UMF_RESULT_ERROR_INVALID_ARGUMENT ;
613
613
}
614
614
615
- * ptr = utils_mmap (NULL , file_ipc_data -> size , file_provider -> protection ,
616
- file_provider -> visibility , fd , file_ipc_data -> offset_fd );
615
+ * ptr = utils_mmap_file (NULL , file_ipc_data -> size , file_provider -> protection ,
616
+ file_provider -> visibility , fd ,
617
+ file_ipc_data -> offset_fd );
617
618
(void )utils_close_fd (fd );
618
619
if (* ptr == NULL ) {
619
620
file_store_last_native_error (UMF_FILE_RESULT_ERROR_ALLOC_FAILED , errno );
0 commit comments