Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4acb3e2f97f41cf9b53182b494384467d3ceb304
Commit:     4acb3e2f97f41cf9b53182b494384467d3ceb304
Parent:     fa74419bb7b51af4bbb66116d14cc92f0b5aff25
Author:     Eric Sesterhenn / Snakebyte <[EMAIL PROTECTED]>
AuthorDate: Wed May 23 13:58:15 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 23 20:14:15 2007 -0700

    Off by one in floppy.c
    
    Another coverity patch i forgot to resend, original thread here
    http://marc.info/?l=linux-kernel&m=115144559823592&w=2
    
    In case drive == N_DRIVE, we get one past the drive_params array.
    
    Signed-off-by: Eric Sesterhenn <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/block/floppy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 3587cb4..fe08804 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -670,7 +670,7 @@ static void __reschedule_timeout(int drive, const char 
*message, int marg)
        if (drive == current_reqD)
                drive = current_drive;
        del_timer(&fd_timeout);
-       if (drive < 0 || drive > N_DRIVE) {
+       if (drive < 0 || drive >= N_DRIVE) {
                fd_timeout.expires = jiffies + 20UL * HZ;
                drive = 0;
        } else
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to