lkml.org 
[lkml]   [2008]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 004 of 29] md: linear: correct disk numbering error check

    From: "Nikanth Karthikesan" <knikanth@novell.com>

    Correct disk numbering problem check.

    Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
    Signed-off-by: Neil Brown <neilb@suse.de>

    ### Diffstat output
    ./drivers/md/linear.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff .prev/drivers/md/linear.c ./drivers/md/linear.c
    --- .prev/drivers/md/linear.c 2008-06-27 15:19:55.000000000 +1000
    +++ ./drivers/md/linear.c 2008-06-27 15:31:20.000000000 +1000
    @@ -126,7 +126,7 @@ static linear_conf_t *linear_conf(mddev_
    int j = rdev->raid_disk;
    dev_info_t *disk = conf->disks + j;

    - if (j < 0 || j > raid_disks || disk->rdev) {
    + if (j < 0 || j >= raid_disks || disk->rdev) {
    printk("linear: disk numbering problem. Aborting!\n");
    goto out;
    }

    \
     
     \ /
      Last update: 2008-06-27 08:55    [W:0.021 / U:184.692 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site