summaryrefslogtreecommitdiff
path: root/samples/workqueue/stall_detector/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMilos Nikic <nikic.milos@gmail.com>2026-02-06 17:06:17 -0800
committerJan Kara <jack@suse.cz>2026-02-27 12:15:26 +0100
commit0cf9c58bf654d0f27abe18005281dbf9890de401 (patch)
tree4044f43c9fa546f168266f1c5f7c961eaf43c0df /samples/workqueue/stall_detector/git@git.tavy.me:linux.git
parent6d942c874f6fc8cea801981b6f2cfd9829a641d4 (diff)
ext2: replace BUG_ON with WARN_ON_ONCE in ext2_get_blocks
If ext2_get_blocks() is called with maxblocks == 0, it currently triggers a BUG_ON(), causing a kernel panic. While this condition implies a logic error in the caller, a filesystem should not crash the system due to invalid arguments. Replace the BUG_ON() with a WARN_ON_ONCE() to provide a stack trace for debugging, and return -EINVAL to handle the error gracefully. Signed-off-by: Milos Nikic <nikic.milos@gmail.com> Link: https://patch.msgid.link/20260207010617.216675-1-nikic.milos@gmail.com Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'samples/workqueue/stall_detector/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions