svn commit: r251945 - head/sys/dev/ata/chipsets

Alexander Motin mav at FreeBSD.org
Tue Jun 18 15:04:17 UTC 2013


Author: mav
Date: Tue Jun 18 15:04:17 2013
New Revision: 251945
URL: http://svnweb.freebsd.org/changeset/base/251945

Log:
  Pass proper memory type to free() in ata_ali_chipinit().
  
  Submitted by:	Dmitry Luhtionov <dmitryluhtionov at gmail.com>
  MFC after:	1 week

Modified:
  head/sys/dev/ata/chipsets/ata-acerlabs.c

Modified: head/sys/dev/ata/chipsets/ata-acerlabs.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-acerlabs.c	Tue Jun 18 15:02:53 2013	(r251944)
+++ head/sys/dev/ata/chipsets/ata-acerlabs.c	Tue Jun 18 15:04:17 2013	(r251945)
@@ -133,7 +133,7 @@ ata_ali_chipinit(device_t dev)
 			for (i--; i >=0; i--)
 				bus_release_resource(dev, SYS_RES_IOPORT,
 				    PCIR_BAR(i), res->bars[i]);
-			free(res, M_TEMP);
+			free(res, M_ATAPCI);
 			return ENXIO;
 		}
 	}


More information about the svn-src-all mailing list