net/ipv4|include/asm-generic: Enhancement of out of bounds fix