malloc -> kmalloc
authorHasso Tepper <hasso@dragonflybsd.org>
Tue, 26 Jun 2007 11:53:16 +0000 (11:53 +0000)
committerHasso Tepper <hasso@dragonflybsd.org>
Tue, 26 Jun 2007 11:53:16 +0000 (11:53 +0000)
sys/dev/sound/pci/hda/hdac.c

index dae054b..c520bb7 100644 (file)
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/dev/sound/pci/hda/hdac.c,v 1.36.2.3 2007/06/21 20:58:44 ariff Exp $
- * $DragonFly: src/sys/dev/sound/pci/hda/hdac.c,v 1.5 2007/06/26 11:04:50 hasso Exp $
+ * $DragonFly: src/sys/dev/sound/pci/hda/hdac.c,v 1.6 2007/06/26 11:53:16 hasso Exp $
  */
 
 /*
@@ -86,7 +86,7 @@
 #define HDA_DRV_TEST_REV       "20070619_0045"
 #define HDA_WIDGET_PARSER_REV  1
 
-SND_DECLARE_FILE("$DragonFly: src/sys/dev/sound/pci/hda/hdac.c,v 1.5 2007/06/26 11:04:50 hasso Exp $");
+SND_DECLARE_FILE("$DragonFly: src/sys/dev/sound/pci/hda/hdac.c,v 1.6 2007/06/26 11:53:16 hasso Exp $");
 
 #define HDA_BOOTVERBOSE(stmt)  do {                    \
        if (bootverbose != 0) {                         \
@@ -3616,7 +3616,7 @@ hdac_attach(device_t dev)
        uint16_t vendor;
        uint8_t v;
 
-       sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK | M_ZERO);
+       sc = kmalloc(sizeof(*sc), M_DEVBUF, M_WAITOK | M_ZERO);
        sc->lock = snd_mtxcreate(device_get_nameunit(dev), HDAC_MTX_NAME);
        sc->dev = dev;
        sc->pci_subvendor = (uint32_t)pci_get_subdevice(sc->dev) << 16;