qcpdc(4)'s establish routine needs to return the wrapped cookie, not the
authorpatrick <patrick@openbsd.org>
Fri, 16 Dec 2022 18:08:08 +0000 (18:08 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 16 Dec 2022 18:08:08 +0000 (18:08 +0000)
cookie it received from establishing the interrupt.

sys/dev/fdt/qcpdc.c

index fb97237..c0068c1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: qcpdc.c,v 1.1 2022/11/10 12:12:53 patrick Exp $       */
+/*     $OpenBSD: qcpdc.c,v 1.2 2022/12/16 18:08:08 patrick Exp $       */
 /*
  * Copyright (c) 2022 Patrick Wildt <patrick@blueri.se>
  *
@@ -205,7 +205,7 @@ qcpdc_intr_establish(void *aux, int *cells, int ipl,
        HSET4(sc, PDC_INTR_ENABLE(pin), PDC_INTR_ENABLE_BIT(pin));
        splx(s);
 
-       return cookie;
+       return ih;
 }
 
 void