Fun with NULL pointers, part 2
Fun with NULL pointers, part 2
Posted Jul 21, 2009 22:11 UTC (Tue) by ebiederm (subscriber, #35028)In reply to: Fun with NULL pointers, part 2 by eparis
Parent article: Fun with NULL pointers, part 2
As best I can tell Herbert badly resolved a merge between my changes
to tun.c and his changes to tun.c, and simply had not realized how much
I had changed tun.c.
to tun.c and his changes to tun.c, and simply had not realized how much
I had changed tun.c.
As for writing code defensively. Doing that routinely doubles your number of bugs.
You have the wrong input should never have been generated in the first place.
You have the wrong BUG_ON in the function.
Bugs per line of code are roughly constant. Therefore you want a design
that uses fewer lines of code.
What made all of this interesting is the fact someone found a way around the defensive measure of mmap_min_addr.
Eric
