From 952c2f2f8b214c69563335466b26b81ed2b59215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 26 Apr 2022 15:08:24 +0200 Subject: [PATCH] gpt_write: alloc packet with proper alignment The component wrongly ignored the advertised requst aligment of the block provider. Fixes #4486. --- repos/gems/src/app/gpt_write/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/gems/src/app/gpt_write/util.h b/repos/gems/src/app/gpt_write/util.h index 1157cd18c1..0a5ab01641 100644 --- a/repos/gems/src/app/gpt_write/util.h +++ b/repos/gems/src/app/gpt_write/util.h @@ -134,7 +134,7 @@ struct Util::Block_io bool write = false, void const *data = nullptr, size_t len = 0) : _block(block), - _p(_block.tx()->alloc_packet(block_size * count), + _p(_block.alloc_packet(block_size * count), write ? Packet_descriptor::WRITE : Packet_descriptor::READ, lba, count) { @@ -146,6 +146,7 @@ struct Util::Block_io Genode::error("invalid data for write"); throw Io_error(); } + } _block.tx()->submit_packet(_p);