Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/arm/arm Pull up revision 1.3 (requested by tho...



details:   https://anonhg.NetBSD.org/src/rev/52b3555b5f8f
branches:  netbsd-1-6
changeset: 529048:52b3555b5f8f
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Aug 27 23:30:36 2002 +0000

description:
Pull up revision 1.3 (requested by thorpej in ticket #736):
In bounds_check_with_label(), look for the label sector in RAW_PART,
not "a".

diffstat:

 sys/arch/arm/arm/disksubr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 524f9ed68178 -r 52b3555b5f8f sys/arch/arm/arm/disksubr.c
--- a/sys/arch/arm/arm/disksubr.c       Tue Aug 27 12:59:03 2002 +0000
+++ b/sys/arch/arm/arm/disksubr.c       Tue Aug 27 23:30:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.2 2002/02/19 17:09:42 wiz Exp $ */
+/*     $NetBSD: disksubr.c,v 1.2.10.1 2002/08/27 23:30:36 lukem Exp $  */
 
 /*
  * Copyright (c) 1998 Christopher G. Demetriou.  All rights reserved.
@@ -394,7 +394,7 @@
        int wlabel;
 {
        struct partition *p = lp->d_partitions + DISKPART(bp->b_dev);
-       int labelsector = lp->d_partitions[0].p_offset + LABELSECTOR;
+       int labelsector = lp->d_partitions[RAW_PART].p_offset + LABELSECTOR;
        int sz;
 
        sz = howmany(bp->b_bcount, lp->d_secsize);



Home | Main Index | Thread Index | Old Index