Yes, only that, even a trained monkey is able to make this patch, but i think
is a good way to make people confortable with BUG_ON
I have changed all the BUG to BUG_ON possible except the directories arch
include, net, fs and drivers.
If you apply this patch i'll change that directories at once.
I have no really change anything so it's totally sane apply the patch.
--------------Boundary-00=_5AOI8ROK0CDEJJJ0S9A9
Content-Type: text/x-diff;
charset="iso-8859-1";
name="BUG_ON.patch"
Content-Transfer-Encoding: base64
Content-Description: make BUG_ON common in the standard kernel
Content-Disposition: attachment; filename="BUG_ON.patch"
ZGlmZiAtdSAtLXJlY3Vyc2l2ZSBsaW51eC9pcGMvbXNnLmMgdjIuNS4xL2xpbnV4L2lwYy9tc2cu
YwotLS0gbGludXgvaXBjL21zZy5jCUZyaSBTZXAgMTQgMjM6MTc6MDAgMjAwMQorKysgdjIuNS4x
L2xpbnV4L2lwYy9tc2cuYwlTYXQgSmFuICA1IDE3OjIzOjU5IDIwMDIKQEAgLTMxNyw4ICszMTcs
NyBAQAogCQlyZXQgPSAtRUVYSVNUOwogCX0gZWxzZSB7CiAJCW1zcSA9IG1zZ19sb2NrKGlkKTsK
LQkJaWYobXNxPT1OVUxMKQotCQkJQlVHKCk7CisJCUJVR19PTihtc3E9PU5VTEwpOwogCQlpZiAo
aXBjcGVybXMoJm1zcS0+cV9wZXJtLCBtc2dmbGcpKQogCQkJcmV0ID0gLUVBQ0NFUzsKIAkJZWxz
ZQpAQCAtODMzLDggKzgzMiw3IEBACiAJCX0KIAkJZXJyID0gUFRSX0VSUihtc2cpOwogCQlpZihl
cnIgPT0gLUVBR0FJTikgewotCQkJaWYobXNxaWQ9PS0xKQotCQkJCUJVRygpOworCQkJQlVHX09O
KG1zcWlkPT0tMSk7CiAJCQlsaXN0X2RlbCgmbXNyX2Qucl9saXN0KTsKIAkJCWlmIChzaWduYWxf
cGVuZGluZyhjdXJyZW50KSkKIAkJCQllcnI9LUVJTlRSOwpkaWZmIC11IC0tcmVjdXJzaXZlIGxp
bnV4L2lwYy9zZW0uYyB2Mi41LjEvbGludXgv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NrX3BhZ2UocGFnZSk7CmRpZmYgLXUgLS1yZWN1cnNpdmUgbGlu
dXgvbW0vdm1zY2FuLmMgdjIuNS4xL2xpbnV4L21tL3Ztc2Nhbi5jCi0tLSBsaW51eC9tbS92bXNj
YW4uYwlTYXQgSmFuICA1IDE3OjA1OjEyIDIwMDIKKysrIHYyLjUuMS9saW51eC9tbS92bXNjYW4u
YwlTdW4gSmFuICA2IDA0OjI2OjE3IDIwMDIKQEAgLTIzNSw4ICsyMzUsNyBAQAogCXBnZGlyID0g
cGdkX29mZnNldChtbSwgYWRkcmVzcyk7CiAKIAllbmQgPSB2bWEtPnZtX2VuZDsKLQlpZiAoYWRk
cmVzcyA+PSBlbmQpCi0JCUJVRygpOworCUJVR19PTiAoYWRkcmVzcyA+PSBlbmQpOwogCWRvIHsK
IAkJY291bnQgPSBzd2FwX291dF9wZ2QobW0sIHZtYSwgcGdkaXIsIGFkZHJlc3MsIGVuZCwgY291
bnQsIGNsYXNzem9uZSk7CiAJCWlmICghY291bnQpCg==
--------------Boundary-00=_5AOI8ROK0CDEJJJ0S9A9--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/