diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-02-08 09:57:34 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-02-08 12:14:25 +0100 |
commit | c1a0bf347c40dd4b0a5bb10fdf4de76a1fbbbe8c (patch) | |
tree | 969ea44ae90ea4f1ebd1ab42711eea0a10a2cb91 /drivers/block | |
parent | b349e9a916772e867d0f9246d2978799897b2495 (diff) | |
download | op-kernel-dev-c1a0bf347c40dd4b0a5bb10fdf4de76a1fbbbe8c.zip op-kernel-dev-c1a0bf347c40dd4b0a5bb10fdf4de76a1fbbbe8c.tar.gz |
x86/mm/numa: Clean up numa_clear_kernel_node_hotplug()
So we fixed an overflow bug in numa_clear_kernel_node_hotplug():
2b54ab3c66d4 ("x86/mm/numa: Fix memory corruption on 32-bit NUMA kernels")
... and the bug was indirectly caused by poor coding style,
such as using start/end local variables unnecessarily, which
lost the physaddr_t type.
So make the code more readable and try to fully comment all
the thinking behind the logic.
No change in functionality.
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: Chen Tang <imtangchen@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Taku Izumi <izumi.taku@jp.fujitsu.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: y14sg1 <y14sg1@comcast.net>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions