Patch: linux-2.5.30/fs/partitions/ldm.c BUG_ON(cond1 || cond2) separation

From: Adam J. Richter (
Date: Mon Aug 05 2002 - 16:06:34 EST

        linux-2.5.30/fs/partitions/ldm.c had 23 statements
of the form BUG_ON(condition1 || condition2). This patch changes
them to:


        This way you may get more useful information if somebody
trips one of them. I recently tripped such a statement with a
sporadic bug and was pretty frustrated by the reduced opportunity
to track it down, so I've decided to submit patches to fix all
such instances in the kernel. Grepping for 'BUG_ON.*\|\|' reveals
only four kernel components with such statements:
drivers/usb/storage/transport.c, ach/arm/mach-iop310/iq80310-pci.c,
fs/ntfs/, and fs/partitions/ldm.c. This is the final patch in the
series, which should eliminate all such BUG_ON(cond1 || cond2) statements.

        I would like to get this patch into Linus's 2.5 tree.
Could you please let me know if you want to handle submitting it
to Linus, if you want me to do so, if you want to follow some other
course of action? Thanks in advance.

Adam J. Richter     __     ______________   575 Oroville Road     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:29 EST