@@ -261,7 +261,7 @@ static umf_result_t file_mmap_aligned(file_memory_provider_t *file_provider,
261261 ASSERT_IS_ALIGNED (extended_size , page_size );
262262 ASSERT_IS_ALIGNED (offset_fd , page_size );
263263
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 );
265265 if (ptr == NULL ) {
266266 LOG_PERR ("memory mapping failed" );
267267 return UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC ;
@@ -612,8 +612,9 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
612612 return UMF_RESULT_ERROR_INVALID_ARGUMENT ;
613613 }
614614
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 );
617618 (void )utils_close_fd (fd );
618619 if (* ptr == NULL ) {
619620 file_store_last_native_error (UMF_FILE_RESULT_ERROR_ALLOC_FAILED , errno );
0 commit comments