Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus Fix the most glaring bug in the old rbus cod...



details:   https://anonhg.NetBSD.org/src/rev/cec4179e3497
branches:  trunk
changeset: 485913:cec4179e3497
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon May 08 19:27:00 2000 +0000

description:
Fix the most glaring bug in the old rbus code.  This way your machine won't
panic with a 3c562, but it won't work either.

diffstat:

 sys/dev/cardbus/rbus.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e9279899edf0 -r cec4179e3497 sys/dev/cardbus/rbus.c
--- a/sys/dev/cardbus/rbus.c    Mon May 08 19:25:46 2000 +0000
+++ b/sys/dev/cardbus/rbus.c    Mon May 08 19:27:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbus.c,v 1.5 2000/05/08 19:25:46 augustss Exp $        */
+/*     $NetBSD: rbus.c,v 1.6 2000/05/08 19:27:00 augustss Exp $        */
 /*
  * Copyright (c) 1999
  *     HAYAKAWA Koichi.  All rights reserved.
@@ -92,7 +92,7 @@
 {
   bus_addr_t decodesize = mask + 1;
   bus_addr_t boundary, search_addr;
-  int val = 0;
+  int val;
   bus_addr_t result;
   int exflags = EX_FAST | EX_NOWAIT;
 
@@ -141,6 +141,7 @@
        search_addr += boundary;
       }
 
+      val = 1;
       for (; search_addr + size <= subend; search_addr += boundary) {
        val = extent_alloc_subregion(rbt->rb_ext,search_addr, search_addr+size,
                                size, align, 0, exflags, (u_long *)&result);



Home | Main Index | Thread Index | Old Index