From 924ee386baafc526cc0e10d34e930088fd1d9ea0 Mon Sep 17 00:00:00 2001 From: gavin Date: Wed, 4 Aug 2010 07:49:40 +0000 Subject: Do not free sc if attach failed, as it was allocated by the bus infrastructure, not us. This appears to be a leftover from an older version of the driver. Submitted by: avg Tested by: Anton Shterenlikht MFC after: 1 week X-MFC-Note: To stable/8 and stable/7 only --- sys/dev/sound/pci/hda/hdac.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/dev/sound') diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index 22ea4c8..a0b1dc7 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -4314,7 +4314,6 @@ hdac_attach_fail: hdac_dma_free(sc, &sc->corb_dma); hdac_mem_free(sc); snd_mtxfree(sc->lock); - free(sc, M_DEVBUF); return (ENXIO); } -- cgit v1.1