mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
os: omit size check on payloadless Block packets
The check is already performed in 'packet_valid' where the conditions for payloadless packets are already considered. Fixes #3660.
This commit is contained in:
parent
6addd6cf1e
commit
c53be5a3fb
@ -107,7 +107,7 @@ class Block::Session_component : public Block::Session_component_base,
|
||||
_p_to_handle.succeeded(false);
|
||||
|
||||
/* ignore invalid packets */
|
||||
bool const valid = packet.size() && _range_check(_p_to_handle)
|
||||
bool const valid = _range_check(_p_to_handle)
|
||||
&& tx_sink()->packet_valid(packet)
|
||||
&& aligned(packet.offset(), _info.align_log2);
|
||||
if (!valid) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user