From: Pete Zaitcev <zaitcev@redhat.com>
To: Eric Sesterhenn <snakebyte@gmx.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Patch] Off by one in drivers/block/floppy.c
Date: Fri, 30 Jun 2006 00:38:16 -0700 [thread overview]
Message-ID: <20060630003816.a7217c81.zaitcev@redhat.com> (raw)
In-Reply-To: <mailman.1151538660.27595.linux-kernel2news@redhat.com>
On Tue, 27 Jun 2006 23:57:49 +0200, Eric Sesterhenn <snakebyte@gmx.de> wrote:
> +++ linux-2.6.17-git11/drivers/block/floppy.c 2006-06-27 23:49:40.000000000 +0200
> @@ -684,7 +684,7 @@ static void __reschedule_timeout(int dri
> if (drive == current_reqD)
> drive = current_drive;
> del_timer(&fd_timeout);
> - if (drive < 0 || drive > N_DRIVE) {
> + if (drive < 0 || drive > N_DRIVE-1) {
> fd_timeout.expires = jiffies + 20UL * HZ;
Looks ok, although the idiom is "drive >= N_DRIVE".
-- Pete
next parent reply other threads:[~2006-06-30 7:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1151538660.27595.linux-kernel2news@redhat.com>
2006-06-30 7:38 ` Pete Zaitcev [this message]
2006-06-27 21:57 [Patch] Off by one in drivers/block/floppy.c Eric Sesterhenn
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=20060630003816.a7217c81.zaitcev@redhat.com \
--to=zaitcev@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=snakebyte@gmx.de \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox