Skip to content
Commit 24f5c65b authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Marti Bolivar
Browse files

shell: fix history memory reclaim



No ring_buf_get_finish() should be performed on ring_buf memory that
wasn't claimed beforehand. Using ring_buf_get() with a NULL destination
does both the claim and the finish part without retrieving anything.

This is especially important with the ring_buffer revanp where the above
is enforced for proper operation.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 4635c086
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment