All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [Patch] change if() BUG(); to BUG_ON() in mm/pdflush.c
@ 2006-01-16 20:53 Eric Sesterhenn / snakebyte
  2006-01-17 21:25 ` [KJ] [Patch] change if() BUG(); to BUG_ON() in Eric Sesterhenn / snakebyte
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Sesterhenn / snakebyte @ 2006-01-16 20:53 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

hi,

this changes an if() BUG(); statement to
BUG_ON() in mm/pdflush.c

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.15-git11/mm/pdflush.c.orig	2006-01-16 21:49:55.000000000 +0100
+++ linux-2.6.15-git11/mm/pdflush.c	2006-01-16 21:50:27.000000000 +0100
@@ -202,8 +202,7 @@ int pdflush_operation(void (*fn)(unsigne
 	unsigned long flags;
 	int ret = 0;
 
-	if (fn == NULL)
-		BUG();		/* Hard to diagnose if it's deferred */
+	BUG_ON(fn == NULL);	/* Hard to diagnose if it's deferred */
 
 	spin_lock_irqsave(&pdflush_lock, flags);
 	if (list_empty(&pdflush_list)) {



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-17 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-16 20:53 [KJ] [Patch] change if() BUG(); to BUG_ON() in mm/pdflush.c Eric Sesterhenn / snakebyte
2006-01-17 21:25 ` [KJ] [Patch] change if() BUG(); to BUG_ON() in Eric Sesterhenn / snakebyte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.