2013-08-20 02:26:43

by Dave Jones

[permalink] [raw]
Subject: Fix apparent cut-and-paste error in super_90_validate

Setting a variable to itself probably wasn't the intention here.

Signed-off-by: Dave Jones <[email protected]>

diff --git a/drivers/md/md.c b/drivers/md/md.c
index 9f13e13..b9cb9e4 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1180,7 +1180,7 @@ static int super_90_validate(struct mddev *mddev, struct md_rdev *rdev)
mddev->bitmap_info.offset =
mddev->bitmap_info.default_offset;
mddev->bitmap_info.space =
- mddev->bitmap_info.space;
+ mddev->bitmap_info.default_space;
}

} else if (mddev->pers == NULL) {


2013-08-20 02:46:53

by NeilBrown

[permalink] [raw]
Subject: Re: Fix apparent cut-and-paste error in super_90_validate

On Mon, 19 Aug 2013 22:26:32 -0400 Dave Jones <[email protected]> wrote:

> Setting a variable to itself probably wasn't the intention here.

Probably not, no.

Applied, thanks.

NeilBrown


>
> Signed-off-by: Dave Jones <[email protected]>
>
> diff --git a/drivers/md/md.c b/drivers/md/md.c
> index 9f13e13..b9cb9e4 100644
> --- a/drivers/md/md.c
> +++ b/drivers/md/md.c
> @@ -1180,7 +1180,7 @@ static int super_90_validate(struct mddev *mddev, struct md_rdev *rdev)
> mddev->bitmap_info.offset =
> mddev->bitmap_info.default_offset;
> mddev->bitmap_info.space =
> - mddev->bitmap_info.space;
> + mddev->bitmap_info.default_space;
> }
>
> } else if (mddev->pers == NULL) {


Attachments:
signature.asc (828.00 B)