summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 17:58:57 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:15:12 +0900
commite11f8002ce69686abfcb448033c1b19034bf49c4 (patch)
tree436385617b9c396f063d8e56a432fe72667a4c50
parent5a5ef3b9b71cd107754c80f05ca898f5e7c2822f (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.c2
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;