Skip to content

staging: most: dim2: replace BUG_ON() with graceful error handling

[email protected] linux-staging lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Split into one patch per function as requested by Greg KH

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5staging: most: dim2: replace BUG_ON() in try_start_dim_transfer()drivers/staging/most/dim2/dim2.c+6 -30 replies
2/5staging: most: dim2: replace BUG_ON() in service_done_flag()drivers/staging/most/dim2/dim2.c+2 -24 replies
3/5staging: most: dim2: replace BUG_ON() in configure_channel()drivers/staging/most/dim2/dim2.c+2 -10 replies
4/5staging: most: dim2: replace BUG_ON() in enqueue()drivers/staging/most/dim2/dim2.c+2 -10 replies
5/5staging: most: dim2: replace BUG_ON() in poison_channel()drivers/staging/most/dim2/dim2.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] staging: most: dim2: replace BUG_ON() with graceful error handling

From: Gabriel Rondon <[email protected]>

Replace all BUG_ON() calls in dim2.c with proper error handling that returns appropriate error codes instead of panicking the kernel.

BUG_ON() is deprecated per Documentation/process/deprecated.rst.

Changes in v2:
- Split into one patch per function as requested by Greg KH

Gabriel Rondon (5):
staging: most: dim2: replace BUG_ON() in try_start_dim_transfer()
staging: most: dim2: replace BUG_ON() in service_done_flag()
staging: most: dim2: replace BUG_ON() in configure_channel()
staging: most: dim2: replace BUG_ON() in enqueue()
staging: most: dim2: replace BUG_ON() in poison_channel()

 drivers/staging/most/dim2/dim2.c | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
Signature · 1 line
2.33.0