• Andries E. Brouwer's avatar
    [PATCH] don't divide by zero on bad ext2 fs · d92539e1
    Andries E. Brouwer authored
    Experimented a bit more with mounting a bad ext2 filesystem.
    
    An immediate crash was caused by zero EXT2_BLOCKS_PER_GROUP(sb).
    The patch below (relative to 2.6.9) adds a few checks to make sure
    that things we divide by are not zero.
    d92539e1
super.c 28.7 KB