Commit 4225ee80 authored by Daniel Kiper's avatar Daniel Kiper Committed by Atsushi Kumagai
Browse files

[PATCH v2 1/3] Add cache_init() call to initial_xen().



Commit 92563d7a (cache: Allocate buffers
at initialization to detect malloc() failure) split cache_alloc() to
cache_init() and cache_alloc(). cache_init() is called in initial().
However, sadly initial_xen() is called before cache_init() and it uses
cache_alloc() indirectly which refers to uninitialized structures.
Hence, makedumfile run on Xen crash dumps finally fails. This patch adds
cache_init() call to initial_xen() and fixes above mentioned issue.
cache_init() is called in initial() if crash dump is not Xen one.

Signed-off-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
parent bcdba922
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment