diff options
author | Petr Mladek <pmladek@suse.com> | 2021-04-27 14:32:09 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-04-27 14:32:09 +0200 |
commit | c8dbea6df351df211216b5f8877b020f21ecf75f (patch) | |
tree | 85e752c1543e08ec217eb901379d56ce31213d20 /drivers/hv | |
parent | da34b03fbd0a6e58770d5fe00830674633a57d60 (diff) | |
parent | acebb5597ff182e52a225400a459052a70dae706 (diff) |
Merge branch 'printk-rework' into for-linus
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/vmbus_drv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 10dce9f91216..b341b144bde8 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1391,6 +1391,7 @@ static void vmbus_isr(void) static void hv_kmsg_dump(struct kmsg_dumper *dumper, enum kmsg_dump_reason reason) { + struct kmsg_dump_iter iter; size_t bytes_written; phys_addr_t panic_pa; @@ -1404,7 +1405,8 @@ static void hv_kmsg_dump(struct kmsg_dumper *dumper, * Write dump contents to the page. No need to synchronize; panic should * be single-threaded. */ - kmsg_dump_get_buffer(dumper, false, hv_panic_page, HV_HYP_PAGE_SIZE, + kmsg_dump_rewind(&iter); + kmsg_dump_get_buffer(&iter, false, hv_panic_page, HV_HYP_PAGE_SIZE, &bytes_written); if (bytes_written) hyperv_report_panic_msg(panic_pa, bytes_written); |