Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
libkdumpfile
diskdump-Delay-private-data-initialization.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File diskdump-Delay-private-data-initialization.patch of Package libkdumpfile
From: Petr Tesarik <petr@tesarici.cz> Date: Mon, 30 Sep 2024 09:39:29 +0200 Subject: diskdump: Delay private data initialization References: bsc#1223399 Upstream: merged Git-commit: 4223d5d17dcaf3408cabfa960f712f2244c7f811 Since flatmap is now handled outside of format-specific code, private data need not be initialized until the header signature is checked. Signed-off-by: Petr Tesarik <ptesarik@suse.com> --- src/kdumpfile/diskdump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/src/kdumpfile/diskdump.c +++ b/src/kdumpfile/diskdump.c @@ -928,10 +928,6 @@ diskdump_probe(kdump_ctx_t *ctx) char desc[32]; kdump_status status; - status = init_private(ctx); - if (status != KDUMP_OK) - return status; - status = flatmap_pread(ctx->shared->flatmap, hdr, sizeof hdr, 0); if (status != KDUMP_OK) return set_error(ctx, status, "Cannot read dump header"); @@ -948,6 +944,10 @@ diskdump_probe(kdump_ctx_t *ctx) set_file_description(ctx, desc); + status = init_private(ctx); + if (status != KDUMP_OK) + return status; + return open_common(ctx, hdr); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor