Samsung / TizenRT

TizenRT is a lightweight RTOS-based platform to support low-end IoT devices
Apache License 2.0
562 stars 561 forks source link

os/kernel/log_dump: Fix wrong free log dump chunk. #6195

Closed ewoodev closed 2 months ago

ewoodev commented 2 months ago

Fix the following problems.

  1. When a part of the chunks of the log dump needs to be discarded due to insufficient kernel memory, the chunks are being freed but not subtracted from the total chunk size held by the log dump.
  2. The current log dump structure must always have more than one log dump chunk. However, as above issue, all chunks can be freed, resulting in an abort.