Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c329e40 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Ritesh Harjani
Browse files

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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git


Git-Commit: de96e9fea7ba56042f105b6fe163447b280eb800
Change-Id: I0008965755b1c83edc097e0f4a1a86e534569bb2
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
parent c0f77713
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment