mem: Check if phys-mem is within the range of McKernel memory
Fujitsu: POSTK_DEBUG_TEMP_FIX_52 Refs: #1164 Change-Id: Idb9a6eac1d2e1df4c663c3171925c774421177fd
This commit is contained in:
committed by
Masamichi Takagi
parent
f57b0c5d4f
commit
9a20cfaefb
@@ -379,12 +379,7 @@ int process_procfs_request(struct ikc_scd_packet *rpacket)
|
||||
goto end;
|
||||
}
|
||||
|
||||
#ifdef POSTK_DEBUG_TEMP_FIX_52 /* NUMA support(memory area determination) */
|
||||
if (!is_mckernel_memory(pa)) {
|
||||
#else
|
||||
if (pa < ihk_mc_get_memory_address(IHK_MC_GMA_MAP_START, 0) ||
|
||||
pa >= ihk_mc_get_memory_address(IHK_MC_GMA_MAP_END, 0)) {
|
||||
#endif /* POSTK_DEBUG_TEMP_FIX_52 */
|
||||
if (!is_mckernel_memory(pa, pa + size)) {
|
||||
ans = -EIO;
|
||||
goto end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user