I want to replace all statements in the kernel of the form
BUG_ON(condition1 || condition2) with:
BUG_ON(condition1);
BUG_ON(condition2);
I was recently bitten by a very sporadic BUG_ON(cond1 || cond2)
statement and was quite annoyed at the greatly reduced opportunity to
debug the problem. Make these changes and someone who experiences
the problem may be able to provide slightly more useful information.
There are only three other places in the kernel besides the
bug I tripped (Matt Dharm and Greg Kroah-Hartmann have already accepted
the patch that I submitted for that one, in drivers/usb/storage). They
are:
2 in arch/arm/mach-iop310/iq80310-pci.c
12 in fs/ntfs/
23 in fs/partitions/ldm.c
Here is the patch for linux-2.5.30/arch/arm/mach-iop310/iq80310-pci.c.
Please let me know if you are going to shepherd this patch to
Linus's linux-2.5 tree, if you want me to submit it to Linus or
someone else, or if there is some other way you'd like me to proceed.
Thanks for your work on Linux on ARM.
-- Adam J. Richter __ ______________ 575 Oroville Road adam@yggdrasil.com \ / 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."
This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:28 EST