summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-03-29 19:09:19 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-03-29 19:09:19 +0000
commite5d236c6e27e4163df821fc8e1b87b9c4eaa2bc2 (patch)
treebf11a3bae008067448d39d586b6b1048a7bc580c
parentb5b2e5ca78d6fd9a02d47d6098a6fd15b8b58494 (diff)
When initializing a timeout, make certain the parameter to be passed
is not NULL.
-rw-r--r--sys/arch/powerpc/mac/aed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/powerpc/mac/aed.c b/sys/arch/powerpc/mac/aed.c
index cd6e94c41a4..07cbba3e61c 100644
--- a/sys/arch/powerpc/mac/aed.c
+++ b/sys/arch/powerpc/mac/aed.c
@@ -117,6 +117,8 @@ aedattach(parent, self, aux)
struct adb_attach_args *aa_args = (struct adb_attach_args *)aux;
struct aed_softc *sc = (struct aed_softc *)self;
+ aed_sc = sc;
+
timeout_set(&sc->sc_repeat_ch, aed_kbdrpt, aed_sc);
sc->origaddr = aa_args->origaddr;
@@ -139,7 +141,6 @@ aedattach(parent, self, aux)
sc->sc_open = 0;
- aed_sc = sc;
printf("ADB Event device\n");