diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-05-13 15:36:22 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-05-14 08:51:02 -0400 |
commit | da4d401a6b8fda7414033f81982f64ade02c0e27 (patch) | |
tree | dc431f5ef23fd51a8a54768b5a865994d9390c85 /arch/x86/kvm/svm/sev.c | |
parent | 3d2353de81061cab4b9d68b3e1dc69cbec1451ea (diff) | |
download | linux-da4d401a6b8fda7414033f81982f64ade02c0e27.tar.bz2 |
ring-buffer: Remove all BUG() calls
There's a lot of checks to make sure the ring buffer is working, and if an
anomaly is detected, it safely shuts itself down. But there's a few cases
that it will call BUG(), which defeats the point of being safe (it crashes
the kernel when an anomaly is found!). There's no reason for them. Switch
them all to either WARN_ON_ONCE() (when no ring buffer descriptor is present),
or to RB_WARN_ON() (when a ring buffer descriptor is present).
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/x86/kvm/svm/sev.c')
0 files changed, 0 insertions, 0 deletions