Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/i386/stand/lib pullup 1.7->1.8 (fvdl)



details:   https://anonhg.NetBSD.org/src/rev/61ef9b72e181
branches:  netbsd-1-4
changeset: 468613:61ef9b72e181
user:      perry <perry%NetBSD.org@localhost>
date:      Sun May 02 21:40:36 1999 +0000

description:
pullup 1.7->1.8 (fvdl)

diffstat:

 sys/arch/i386/stand/lib/biosdisk_ll.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 27b02d8f4d7a -r 61ef9b72e181 sys/arch/i386/stand/lib/biosdisk_ll.c
--- a/sys/arch/i386/stand/lib/biosdisk_ll.c     Sun May 02 21:38:30 1999 +0000
+++ b/sys/arch/i386/stand/lib/biosdisk_ll.c     Sun May 02 21:40:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: biosdisk_ll.c,v 1.7 1999/03/30 17:55:49 drochner Exp $  */
+/*     $NetBSD: biosdisk_ll.c,v 1.7.2.1 1999/05/02 21:40:36 perry Exp $         */
 
 /*
  * Copyright (c) 1996
@@ -78,6 +78,7 @@
        d->sec = SPT(diskinfo);
        d->head = HEADS(diskinfo);
        d->cyl = CYL(diskinfo);
+       d->chs_sectors = d->sec * d->head * d->cyl;
 
        d->flags = 0;
        if ((d->dev & 0x80) && int13_extension(d->dev)) {
@@ -119,7 +120,9 @@
                int64_t sec;
        }               ext;
 
-       if (d->flags & BIOSDISK_EXT13) {
+       if ((dblk + num) >= d->chs_sectors) {
+               if (!(d->flags & BIOSDISK_EXT13))
+                       return -1;
                ext.size = sizeof(ext);
                ext.resvd = 0;
                ext.cnt = num;



Home | Main Index | Thread Index | Old Index