Small Bug

From: Claudia Moroder (claudiamoroder@st-ulrich.suedtirol.net)
Date: Fri Oct 06 2000 - 15:32:14 EDT

  • Next message: Per Jessen: "Re: Tux 2 patents"

    I did send this small bug to the mantainer of Multipple Device SCSI, but did get no answer after a week so I put it at the linux-kernel.

    I have found a small bug in raid5.c
     
    static int __check_consistency (mddev_t *mddev, int row)
    {
    raid5_conf_t *conf = mddev->private;
    kdev_t dev;
    struct buffer_head *bh[MD_SB_DISKS], *tmp = NULL;
    int i, ret = 0, nr = 0, count;
    struct buffer_head *bh_ptr[MAX_XOR_BLOCKS];
    if (conf->working_disks != conf->raid_disks)
    goto out;
     
    // THE BUG IS IN THE FOLLOWING TWO LINES

    tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
    tmp->b_size = 4096;

    // tmp is used without check if it is null;

    Best regards

    Andreas Moroder

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri Oct 06 2000 - 15:32:33 EDT