]> git.baikalelectronics.ru Git - kernel.git/commit
x86: kexec_file: lift CRASH_MAX_RANGES limit on crash_mem buffer
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 13 Apr 2018 22:35:59 +0000 (15:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Apr 2018 00:10:27 +0000 (17:10 -0700)
commitd6ac1f9f73c4ad24a11e1b1eba112831cb9b0533
tree2d1dd1e0d90515ce29c2c381e66fe3c628313de7
parentd34df723361bbce6350e1fa00f37c8af14c016ec
x86: kexec_file: lift CRASH_MAX_RANGES limit on crash_mem buffer

While CRASH_MAX_RANGES (== 16) seems to be good enough, fixed-number
array is not a good idea in general.

In this patch, size of crash_mem buffer is calculated as before and the
buffer is now dynamically allocated.  This change also allows removing
crash_elf_data structure.

Link: http://lkml.kernel.org/r/20180306102303.9063-6-takahiro.akashi@linaro.org
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Acked-by: Dave Young <dyoung@redhat.com>
Tested-by: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/crash.c