summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-08-04 07:49:40 +0000
committergavin <gavin@FreeBSD.org>2010-08-04 07:49:40 +0000
commit924ee386baafc526cc0e10d34e930088fd1d9ea0 (patch)
treeb64c452c2fcd9c35461784b5ebb1a3e820f9b514 /sys/dev/sound
parentfc8c0d299a383c96632e749269a7bfca4b337270 (diff)
downloadFreeBSD-src-924ee386baafc526cc0e10d34e930088fd1d9ea0.zip
FreeBSD-src-924ee386baafc526cc0e10d34e930088fd1d9ea0.tar.gz
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 <mexas bristol.ac.uk> MFC after: 1 week X-MFC-Note: To stable/8 and stable/7 only
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pci/hda/hdac.c1
1 files changed, 0 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud