mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
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:
parent
b8e2b780e3
commit
952c2f2f8b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user