commit | 24f5c65b5a87de959d32d75b6d27fcadbb2e37d0 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Wed Feb 16 13:45:13 2022 -0500 |
committer | Marti Bolivar <marti.bolivar@nordicsemi.no> | Thu Feb 24 14:49:00 2022 -0800 |
tree | e49fc5aac57f82a8b5fd52c55668d9451eb4a738 | |
parent | 4635c0866f56f1fb878a8b3a1c8514fa00137336 [diff] |
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: Nicolas Pitre <npitre@baylibre.com>