[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251021-staging-most-warn-v1-3-4cdd3745bbdc@lukowski.dev>
Date: Tue, 21 Oct 2025 15:16:29 +0300
From: Olle Lukowski <olle@...owski.dev>
To: Parthiban Veerasooran <parthiban.veerasooran@...rochip.com>,
Christian Gromm <christian.gromm@...rochip.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
Olle Lukowski <olle@...owski.dev>
Subject: [PATCH 3/3] staging: most: video: replace BUG_ON() with
WARN_ON_ONCE()
Replace a BUG_ON() call with WARN_ON_ONCE() to prevent an unnecessary
kernel panic.
Signed-off-by: Olle Lukowski <olle@...owski.dev>
---
drivers/staging/most/video/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index 32f71d9a9..3a622bd59 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -575,7 +575,7 @@ static void __exit comp_exit(void)
most_deregister_configfs_subsys(&comp);
most_deregister_component(&comp);
- BUG_ON(!list_empty(&video_devices));
+ WARN_ON_ONCE(!list_empty(&video_devices));
}
module_init(comp_init);
--
2.51.1
Powered by blists - more mailing lists