• Andries E. Brouwer's avatar
    [PATCH] minix_clear_inode fix · 0e879ae6
    Andries E. Brouwer authored
    The patch below fixes two flaws in minix_clear_inode.
    
    The first is that it tests bh which is never initialized.  (&bh is a
    parameter of minix_V1_raw_inode, but that routine can fail and return
    before it has set bh)
    
    The second is that generic_delete_inode() goes BUG() in case inode->i_state
    != I_CLEAR.  Clearly, it is expected that inode->i_sb->s_op->delete_inode
    does a clear_inode() at some point.  But minix_delete_inode() calls
    minix_free_inode() and that routine can print an error and return early,
    before calling clear_inode().
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    0e879ae6
bitmap.c 6.39 KB