svn commit: r204384 - head/sys/dev/isp

Matt Jacob mjacob at FreeBSD.org
Sat Feb 27 01:58:42 UTC 2010


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);


More information about the svn-src-all mailing list