Author: gavin
Date: Wed Aug 18 20:23:47 2010
New Revision: 211465
URL: http://svn.freebsd.org/changeset/base/211465

Log:
  Merge 210839 from head:
  
    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>

Modified:
  stable/7/sys/dev/sound/pci/hda/hdac.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- stable/7/sys/dev/sound/pci/hda/hdac.c       Wed Aug 18 18:05:54 2010        
(r211464)
+++ stable/7/sys/dev/sound/pci/hda/hdac.c       Wed Aug 18 20:23:47 2010        
(r211465)
@@ -4258,7 +4258,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);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to