cache: fix cache logic not go into invalid state
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cache: allocate buffers at initialization to detect malloc() failurecache.c cache.h makedumpfile.c | +26 | 0 replies | |
| 2/2 | cache: reuse entry in pending listcache.c | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] cache: fix cache logic not go into invalid state
I faced failure of sadump phys_base calculation and found a bug in cache.c causes it. Due to the bug, cache_alloc() returns NULL forever throughout execution. The fix is the 2nd patch. During the investigation I also found a lack of malloc() allocation failure check. The fix is the 1st patch. Primary is the 2nd one.
I built this patch set on top of devel branch.
---
HATAYAMA Daisuke (2):
cache: allocate buffers at initialization to detect malloc() failure
cache: reuse entry in pending list
cache.c | 50 +++++++++++++++++++++++++++++++++----------------- cache.h | 1 + makedumpfile.c | 3 +++ 3 files changed, 37 insertions(+), 17 deletions(-)
Signature · 7 lines
Thanks. HATAYAMA, Daisuke _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec