Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2010 01:58:42 +0000 (UTC)
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204384 - head/sys/dev/isp
Message-ID:  <201002270158.o1R1wgJm018483@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjacob
Date: Sat Feb 27 01:58:41 2010
New Revision: 204384
URL: http://svn.freebsd.org/changeset/base/204384

Log:
  Fix misallocation error in target mode.
  
  MFC after:	1 day

Modified:
  head/sys/dev/isp/isp_pci.c

Modified: head/sys/dev/isp/isp_pci.c
==============================================================================
--- head/sys/dev/isp/isp_pci.c	Sat Feb 27 01:17:44 2010	(r204383)
+++ head/sys/dev/isp/isp_pci.c	Sat Feb 27 01:58:41 2010	(r204384)
@@ -1529,7 +1529,7 @@ isp_pci_mbxdma(ispsoftc_t *isp)
 	}
 	isp->isp_xffree = isp->isp_xflist;
 #ifdef	ISP_TARGET_MODE
-	len = sizeof (isp_hdl_t *) * isp->isp_maxcmds;
+	len = sizeof (isp_hdl_t) * isp->isp_maxcmds;
 	isp->isp_tgtlist = (isp_hdl_t *) malloc(len, M_DEVBUF, M_WAITOK | M_ZERO);
 	if (isp->isp_tgtlist == NULL) {
 		free(isp->isp_osinfo.pcmd_pool, M_DEVBUF);



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