diff options
| author | Gabriel Rondon <grondon@gmail.com> | 2026-03-30 19:22:51 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-31 10:46:38 +0200 |
| commit | f3dc6732fd52b59bab522c5095290bca0d5f5555 (patch) | |
| tree | 7a0b9eff0834066f1547d8bee82067a32242d5b9 /tools/perf/tests/shell/script_python.sh | |
| parent | f019e98a2f35ec022872d8843ff9c9c9af90e6ec (diff) | |
staging: most: dim2: replace BUG_ON() in try_start_dim_transfer()
Replace BUG_ON() calls with graceful error handling.
For the null/uninitialized channel checks, return -EINVAL instead of
crashing the kernel. For the zero bus_address check, release the
spinlock and return -EFAULT.
BUG_ON() is deprecated as it crashes the entire kernel on assertion
failure (see Documentation/process/deprecated.rst).
Signed-off-by: Gabriel Rondon <grondon@gmail.com>
Link: https://patch.msgid.link/20260330182255.75241-2-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/tests/shell/script_python.sh')
0 files changed, 0 insertions, 0 deletions
