zephyr/subsys/rtio
Yuval Peress 3fd0a1508b rtio: fix bug in mempool release API
It was previously assumed that the 'sys_mem_blocks' struct would maintain
information about contiguous blocks allocated so the release API only
took the starting address. This led to an issue where allocating 2+
blocks would end up with a memory leak because any block not being the
first would never be released.

Add the buffer length as an argument so the correct number of blocks can
be released. Also, ammend the tests to match and verify.

Signed-off-by: Yuval Peress <peress@google.com>
2023-05-01 09:26:06 -05:00
..
CMakeLists.txt rtio: Add a managed memory pool for reads 2023-04-10 18:34:43 -04:00
Kconfig rtio: Add a managed memory pool for reads 2023-04-10 18:34:43 -04:00
rtio_executor_common.h rtio: Add callback op 2023-04-03 09:51:02 +02:00
rtio_executor_concurrent.c rtio: Add a managed memory pool for reads 2023-04-10 18:34:43 -04:00
rtio_executor_simple.c rtio: Add a managed memory pool for reads 2023-04-10 18:34:43 -04:00
rtio_handlers.c rtio: fix bug in mempool release API 2023-05-01 09:26:06 -05:00
rtio_userspace_init.c rtio: Add a managed memory pool for reads 2023-04-10 18:34:43 -04:00