Repository navigation
Commit da4d401
committed
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>1 parent 3d2353d commit da4d401
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
3727 | 3727 | | |
3728 | 3728 | | |
3729 | 3729 | | |
3730 | | - | |
| 3730 | + | |
3731 | 3731 | | |
3732 | 3732 | | |
3733 | 3733 | | |
| |||
3757 | 3757 | | |
3758 | 3758 | | |
3759 | 3759 | | |
3760 | | - | |
| 3760 | + | |
3761 | 3761 | | |
3762 | 3762 | | |
3763 | 3763 | | |
| |||
4020 | 4020 | | |
4021 | 4021 | | |
4022 | 4022 | | |
4023 | | - | |
| 4023 | + | |
4024 | 4024 | | |
4025 | 4025 | | |
4026 | 4026 | | |
| |||
4109 | 4109 | | |
4110 | 4110 | | |
4111 | 4111 | | |
4112 | | - | |
| 4112 | + | |
4113 | 4113 | | |
4114 | 4114 | | |
4115 | 4115 | | |
| |||
0 commit comments