Thread (2 messages) flat view 2 messages, 2 authors, 2018-08-21

Re: powerpc/fadump: cleanup crash memory ranges support

From: Michael Ellerman <hidden>
Date: 2018-08-21 10:35:25

On Fri, 2018-08-17 at 20:40:56 UTC, Hari Bathini wrote:
Commit 1bd6a1c4b80a ("powerpc/fadump: handle crash memory ranges array
index overflow") changed crash memory ranges to a dynamic array that
is reallocated on-demand with krealloc(). The relevant header for this
call was not included. The kernel compiles though. But be cautious and
add the header anyway.

Also, memory allocation logic in fadump_add_crash_memory() takes care
of memory allocation for crash memory ranges in all scenarios. Drop
unnecessary memory allocation in fadump_setup_crash_memory_ranges().

Fixes: 1bd6a1c4b80a ("powerpc/fadump: handle crash memory ranges array index overflow")
Cc: Mahesh Salgaonkar <redacted>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/a58183138cb72059a0c278f8370a47

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help