From e11f8002ce69686abfcb448033c1b19034bf49c4 Mon Sep 17 00:00:00 2001 From: Russell King Date: Mon, 6 Jun 2016 17:58:57 +0100 Subject: kdump: actually write out the memory Actually write out the memory rather than writing the notes a second time. Reviewed-by: Pratyush Anand Signed-off-by: Russell King Signed-off-by: Simon Horman --- kdump/kdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdump/kdump.c b/kdump/kdump.c index 99a1789..1f5b984 100644 --- a/kdump/kdump.c +++ b/kdump/kdump.c @@ -300,7 +300,7 @@ int main(int argc, char **argv) for(i = 0; i < ehdr->e_phnum; i++) { unsigned long long offset, size; size_t wsize; - if (phdr[i].p_type != PT_NOTE) { + if (phdr[i].p_type == PT_NOTE) { continue; } offset = phdr[i].p_offset; -- cgit