diff options
author | Mohamed Khalfella <mkhalfella@purestorage.com> | 2023-07-14 22:33:41 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-07-23 17:18:52 +0200 |
commit | 4b8b3905165ef98386a3c06f196c85d21292d029 (patch) | |
tree | b933f374abed4c2110ea812439482240bc728703 /include/keys/trusted_caam.h | |
parent | ring-buffer: Do not swap cpu_buffer during resize process (diff) | |
download | linux-4b8b3905165ef98386a3c06f196c85d21292d029.tar.xz linux-4b8b3905165ef98386a3c06f196c85d21292d029.zip |
tracing/histograms: Return an error if we fail to add histogram to hist_vars list
Commit 6018b585e8c6 ("tracing/histograms: Add histograms to hist_vars if
they have referenced variables") added a check to fail histogram creation
if save_hist_vars() failed to add histogram to hist_vars list. But the
commit failed to set ret to failed return code before jumping to
unregister histogram, fix it.
Link: https://lore.kernel.org/linux-trace-kernel/20230714203341.51396-1-mkhalfella@purestorage.com
Cc: stable@vger.kernel.org
Fixes: 6018b585e8c6 ("tracing/histograms: Add histograms to hist_vars if they have referenced variables")
Signed-off-by: Mohamed Khalfella <mkhalfella@purestorage.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/keys/trusted_caam.h')
0 files changed, 0 insertions, 0 deletions