Skip to content

Commit

Permalink
Apply queue API changes from the RTOS core.
Browse files Browse the repository at this point in the history
The RTOS core changed the queue API:
CHERIoT-Platform/cheriot-rtos@c3c0fb1

This requires slight changes to the network stack reset code, which
plugs in at this lower-level API.

Signed-off-by: Hugo Lefeuvre <[email protected]>
  • Loading branch information
hlef committed Oct 29, 2024
1 parent 9409c18 commit 73411d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tcpip/tcpip_error_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ extern "C" void reset_network_stack_state()

// Upgrade the message queue lock for destruction
DebugErrorHandler::log("Upgrading the message queue for destruction.");
auto *queueHandle = &xNetworkEventQueue->handle;
if (int err = queue_destroy(MALLOC_CAPABILITY, queueHandle); err != 0)
if (int err = queue_destroy(MALLOC_CAPABILITY, xNetworkEventQueue);
err != 0)
{
DebugErrorHandler::log(
"Failed to upgrade the message queue for destruction (error {}).",
Expand Down

0 comments on commit 73411d6

Please sign in to comment.