Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sbuf_cpy() resets the sbuf state, which is wrong for sbufs allocated by sbuf_new_for_sysctl(). In particular, this code triggers an assertion failure in sbuf_clear(). Instead, allocate the sbuf itself statically and pass the buffer in at creation time. This avoids some needless memory allocation and copying. Fixes: 6930ecb ("spa: make read/write queues configurable") Reported-by: Peter Holm <[email protected]> Signed-off-by: Mark Johnston <[email protected]>
- Loading branch information