kernel: system_info: correctly check the user buffer...

before writing.
This commit is contained in:
Jérôme Duval 2018-01-06 12:03:33 +01:00
parent 4069b740e5
commit 9c18398fe4

View File

@ -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;