summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_zyd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/if_zyd.c')
-rw-r--r--sys/dev/usb/if_zyd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c
index e2245dc5f42..f2a00065096 100644
--- a/sys/dev/usb/if_zyd.c
+++ b/sys/dev/usb/if_zyd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_zyd.c,v 1.102 2014/07/12 15:26:54 stsp Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.103 2014/07/12 18:48:52 tedu Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
@@ -270,7 +270,7 @@ zyd_attachhook(void *xsc)
}
error = zyd_loadfirmware(sc, fw, size);
- free(fw, M_DEVBUF);
+ free(fw, M_DEVBUF, 0);
if (error != 0) {
printf("%s: could not load firmware (error=%d)\n",
sc->sc_dev.dv_xname, error);
@@ -534,7 +534,7 @@ zyd_close_pipes(struct zyd_softc *sc)
}
}
if (sc->ibuf != NULL) {
- free(sc->ibuf, M_USBDEV);
+ free(sc->ibuf, M_USBDEV, 0);
sc->ibuf = NULL;
}
}