]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: most: dim2: replace BUG_ON() in enqueue()
authorGabriel Rondon <grondon@gmail.com>
Mon, 30 Mar 2026 18:22:54 +0000 (19:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:46:39 +0000 (10:46 +0200)
commite922cb40026c7ab788d1955f8977e354167f6496
tree219f661a316b634bfdc62ed27543420acb635993
parentadb44bab0ac96391dc9d0e4b3604b65e558f23ec
staging: most: dim2: replace BUG_ON() in enqueue()

Replace BUG_ON() range check on ch_idx with a return of -EINVAL.

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-5-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c