Skip to content
Snippets Groups Projects
Commit 60817c9b authored by Shaohua Li's avatar Shaohua Li Committed by Ingo Molnar
Browse files

x86, memory hotplug: remove wrong -1 in calling init_memory_mapping()


Impact: fix crash with memory hotplug

Shuahua Li found:

| I just did some experiments on a desktop for memory hotplug and this bug
| triggered a crash in my test.
|
| Yinghai's suggestion also fixed the bug.

We don't need to round it, just remove that extra -1

Signed-off-by: default avatarYinghai <yinghai@kernel.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3afa3949
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment