Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/i2c Pull up following revision(s) (requested by b...



details:   https://anonhg.NetBSD.org/src/rev/4efbe0ef731c
branches:  netbsd-9
changeset: 454749:4efbe0ef731c
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 26 18:56:05 2019 +0000

description:
Pull up following revision(s) (requested by bouyer in ticket #244):

        sys/dev/i2c/ihidev.c: revision 1.8

Abort attach if acpi_intr_establish() fails. From K. Schreiner on
current-users@.

diffstat:

 sys/dev/i2c/ihidev.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 0b41b6c2e39a -r 4efbe0ef731c sys/dev/i2c/ihidev.c
--- a/sys/dev/i2c/ihidev.c      Thu Sep 26 18:52:57 2019 +0000
+++ b/sys/dev/i2c/ihidev.c      Thu Sep 26 18:56:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ihidev.c,v 1.7 2018/11/16 23:05:50 jmcneill Exp $ */
+/* $NetBSD: ihidev.c,v 1.7.4.1 2019/09/26 18:56:05 martin Exp $ */
 /* $OpenBSD ihidev.c,v 1.13 2017/04/08 02:57:23 deraadt Exp $ */
 
 /*-
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.7 2018/11/16 23:05:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.7.4.1 2019/09/26 18:56:05 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -210,8 +210,10 @@
 
                sc->sc_ih = acpi_intr_establish(self, sc->sc_phandle, IPL_TTY,
                    false, ihidev_intr, sc, device_xname(self));
-               if (sc->sc_ih == NULL)
+               if (sc->sc_ih == NULL) {
                        aprint_error_dev(self, "can't establish interrupt\n");
+                       return;
+               }
                aprint_normal_dev(self, "interrupting at %s\n",
                    acpi_intr_string(sc->sc_ih, buf, sizeof(buf)));
        }



Home | Main Index | Thread Index | Old Index