diff options
| author | Greg Kroah-Hartman <[email protected]> | 2019-01-03 09:23:47 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-01-07 07:53:32 +0000 |
| commit | de96e9fea7ba56042f105b6fe163447b280eb800 (patch) | |
| tree | d3f6f03da38d0bbe96c587e2bae9e11cb53123ed /tools/perf/util/c++/clang.cpp | |
| parent | Linux 5.0-rc1 (diff) | |
| download | kernel-de96e9fea7ba56042f105b6fe163447b280eb800.tar.gz kernel-de96e9fea7ba56042f105b6fe163447b280eb800.zip | |
sysfs: convert BUG_ON to WARN_ON
It's rude to crash the system just because the developer did something
wrong, as it prevents them from usually even seeing what went wrong.
So convert the few BUG_ON() calls that have snuck into the sysfs code
over the years to WARN_ON() to make it more "friendly". All of these
are able to be recovered from, so it makes no sense to crash.
Reported-by: Linus Torvalds <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions
