From c53be5a3fb5a4e428c7f3287077b4f57239912d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 18 Feb 2020 17:39:40 +0100 Subject: [PATCH] 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. --- repos/os/include/block/component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/block/component.h b/repos/os/include/block/component.h index 718f849cc4..3a10cb5ad7 100644 --- a/repos/os/include/block/component.h +++ b/repos/os/include/block/component.h @@ -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) {