gpt_write: alloc packet with proper alignment

The component wrongly ignored the advertised requst aligment of the
block provider.

Fixes #4486.
This commit is contained in:
Josef Söntgen 2022-04-26 15:08:24 +02:00 committed by Christian Helmuth
parent b8e2b780e3
commit 952c2f2f8b

View File

@ -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);