commit | a54a525c14a8e325f29819e1ccec013428bbe0d0 | [log] [tgz] |
---|---|---|
author | Kyle Swenson <kyle.swenson@est.tech> | Tue Aug 22 10:46:32 2023 -0600 |
committer | Kyle Swenson <kyle.swenson@est.tech> | Tue Aug 22 12:54:57 2023 -0600 |
tree | 248a4e065b4003e07f880f4362747ea9d6637684 | |
parent | 6243d704c04fd97811285f1fb9adf5e0d638d48e [diff] |
CDU: Stop clearing stats prematurely The function 'seq_show' can be called multiple times if the printf buffer overflows. When this happened in the stats_clear case, we would lose the CDU data remaining in that bucket because we'd clear the entire bucket. This patch fixes this issue by checking that we've not overflowed the buffer before clearing the stats. Change-Id: Id110faf83b4e33c9865628e98d0cfee8df64bc6b