Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Put back the evaluation of the return value...



details:   https://anonhg.NetBSD.org/src/rev/a32c927b37bf
branches:  trunk
changeset: 750547:a32c927b37bf
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Jan 05 17:23:18 2010 +0000

description:
Put back the evaluation of the return value from mpacpi_get_bbn().

Break reported by njoly@. Thanks!

diffstat:

 sys/arch/x86/x86/mpacpi.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r c00966c3708c -r a32c927b37bf sys/arch/x86/x86/mpacpi.c
--- a/sys/arch/x86/x86/mpacpi.c Tue Jan 05 15:45:26 2010 +0000
+++ b/sys/arch/x86/x86/mpacpi.c Tue Jan 05 17:23:18 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpacpi.c,v 1.82 2010/01/05 13:57:18 jruoho Exp $       */
+/*     $NetBSD: mpacpi.c,v 1.83 2010/01/05 17:23:18 jruoho Exp $       */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.82 2010/01/05 13:57:18 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.83 2010/01/05 17:23:18 jruoho Exp $");
 
 #include "acpica.h"
 #include "opt_acpi.h"
@@ -576,7 +576,9 @@
                        goto out;
 
                if (acpi_match_hid(devinfo, pciroot_hid)) {
-                       (void)mpacpi_get_bbn(acpi, parent, &bus);
+                       rv = mpacpi_get_bbn(acpi, parent, &bus);
+                       if (ACPI_FAILURE(rv))
+                               bus = 0;
                        ACPI_FREE(devinfo);
                        break;
                }



Home | Main Index | Thread Index | Old Index