From 9c18398fe41195a85d8353bbad88a9a3696f5a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 6 Jan 2018 12:03:33 +0100 Subject: [PATCH] kernel: system_info: correctly check the user buffer... before writing. --- src/system/kernel/system_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/system_info.cpp b/src/system/kernel/system_info.cpp index f09a7a0956..82431a94ea 100644 --- a/src/system/kernel/system_info.cpp +++ b/src/system/kernel/system_info.cpp @@ -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;