Hi tech@,

Here is a diff to add sizes for free() in eap(4).

Similar diff to the ones previously sent for other audio drivers.

Comments? OK?

Index: sys/dev/pci/eap.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/eap.c,v
retrieving revision 1.56
diff -u -p -r1.56 eap.c
--- sys/dev/pci/eap.c   14 Sep 2018 08:37:34 -0000      1.56
+++ sys/dev/pci/eap.c   13 Dec 2019 09:36:24 -0000
@@ -1471,7 +1471,7 @@ eap_malloc(void *addr, int direction, si
                return (0);
        error = eap_allocmem(sc, size, 16, p);
        if (error) {
-               free(p, pool, 0);
+               free(p, pool, sizeof(*p));
                return (0);
        }
        p->next = sc->sc_dmas;
@@ -1489,7 +1489,7 @@ eap_free(void *addr, void *ptr, int pool
                if (KERNADDR(p) == ptr) {
                        eap_freemem(sc, p);
                        *pp = p->next;
-                       free(p, pool, 0);
+                       free(p, pool, sizeof(*p));
                        return;
                }
        }

Reply via email to