svn commit: r210839 - head/sys/dev/sound/pci/hda

Gavin Atkinson gavin at FreeBSD.org
Wed Aug 4 07:49:41 UTC 2010


Author: gavin
Date: Wed Aug  4 07:49:40 2010
New Revision: 210839
URL: http://svn.freebsd.org/changeset/base/210839

Log:
  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

Modified:
  head/sys/dev/sound/pci/hda/hdac.c

Modified: head/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.c	Wed Aug  4 07:47:19 2010	(r210838)
+++ head/sys/dev/sound/pci/hda/hdac.c	Wed Aug  4 07:49:40 2010	(r210839)
@@ -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);
 }


More information about the svn-src-all mailing list