Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 15:04:17 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251945 - head/sys/dev/ata/chipsets
Message-ID:  <201306181504.r5IF4H36096121@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306181504.r5IF4H36096121>