LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "NeilBrown" <neilb@suse.de>
To: "Stefan Lippers-Hollmann" <s.L-H@gmx.de>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org,
	maan@systemlinux.org, stable@kernel.org
Subject: Re: patch  md-linear-fix-a-division-by-zero-bug-for-very-small-arrays.patch  added to 2.6.27-stable tree
Date: Wed, 12 Nov 2008 09:46:36 +1100 (EST)	[thread overview]
Message-ID: <5f46e30cc6798d8b201c2e25aa2c04e1.squirrel@neil.brown.name> (raw)
In-Reply-To: <200811112328.15522.s.L-H@gmx.de>

On Wed, November 12, 2008 9:28 am, Stefan Lippers-Hollmann wrote:
> Hi
>
> On Dienstag, 11. November 2008, gregkh@suse.de wrote:

>>
>> --- a/drivers/md/linear.c
>> +++ b/drivers/md/linear.c
>> @@ -157,6 +157,8 @@ static linear_conf_t *linear_conf(mddev_
>>
>>  	min_spacing = conf->array_sectors / 2;
>>  	sector_div(min_spacing, PAGE_SIZE/sizeof(struct dev_info *));
>> +	if (min_sectors == 0)
>> +		min_sectors = 1;
>>
>>  	/* min_spacing is the minimum spacing that will fit the hash
>>  	 * table in one PAGE.  This may be much smaller than needed.
>
> drivers/md/linear.c: In function 'linear_conf':
> drivers/md/linear.c:160: error: 'min_sectors' undeclared (first use in
> this function)
> drivers/md/linear.c:160: error: (Each undeclared identifier is reported
> only once
> drivers/md/linear.c:160: error: for each function it appears in.)
> make[5]: *** [drivers/md/linear.o] Error 1
> make[4]: *** [drivers/md] Error 2
> make[4]: *** Waiting for unfinished jobs....
>
> This one obviously depends on:
>
> commit 23242fbb470ff4c8c4d41f178832cf1929273d7d
> Author: Andre Noll <maan@systemlinux.org>
> Date:   Mon Oct 13 11:55:12 2008 +1100
>
>     md: linear.c: Make two local variables sector-based.
>
> which in turn depends on previous changes.

Yes, but only syntactically, not semantically.

In 2.6.27, it needs to be
   if (min_spacing == 0)
           min_spacing = 1;

The other previous patches don't need to be backported.

Thanks for reporting this.

NeilBrown


>
> Regards
> 	Stefan Lippers-Hollmann
>


  reply	other threads:[~2008-11-11 22:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20081111180958.4480949037@coco.kroah.org>
2008-11-11 22:28 ` Stefan Lippers-Hollmann
2008-11-11 22:46   ` NeilBrown [this message]
2008-11-11 23:43     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f46e30cc6798d8b201c2e25aa2c04e1.squirrel@neil.brown.name \
    --to=neilb@suse.de \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maan@systemlinux.org \
    --cc=s.L-H@gmx.de \
    --cc=stable@kernel.org \
    --subject='Re: patch  md-linear-fix-a-division-by-zero-bug-for-very-small-arrays.patch  added to 2.6.27-stable tree' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).