diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-06-06 17:58:57 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-06-08 09:15:12 +0900 |
commit | e11f8002ce69686abfcb448033c1b19034bf49c4 (patch) | |
tree | 436385617b9c396f063d8e56a432fe72667a4c50 | |
parent | 5a5ef3b9b71cd107754c80f05ca898f5e7c2822f (diff) |
kdump: actually write out the memory
Actually write out the memory rather than writing the notes a second
time.
Reviewed-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kdump/kdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |