kernel: system_info: correctly check the user buffer...
before writing.
This commit is contained in:
parent
4069b740e5
commit
9c18398fe4
@ -595,7 +595,7 @@ _user_get_cpu_topology_info(cpu_topology_node_info* topologyInfos,
|
||||
|
||||
if (topologyInfos == NULL)
|
||||
return user_memcpy(topologyInfoCount, &count, sizeof(uint32));
|
||||
else if (!IS_USER_ADDRESS(topologyInfoCount))
|
||||
else if (!IS_USER_ADDRESS(topologyInfos))
|
||||
return B_BAD_ADDRESS;
|
||||
|
||||
uint32 userCount;
|
||||
|
Loading…
Reference in New Issue
Block a user