svn commit: r204442 - stable/8/sys/dev/isp
Matt Jacob
mjacob at FreeBSD.org
Sun Feb 28 06:07:54 UTC 2010
Author: mjacob
Date: Sun Feb 28 06:07:53 2010
New Revision: 204442
URL: http://svn.freebsd.org/changeset/base/204442
Log:
MFC of 204384: Fix misallocation error in target mode
Modified:
stable/8/sys/dev/isp/isp_pci.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
stable/8/sys/netinet/ (props changed)
Modified: stable/8/sys/dev/isp/isp_pci.c
==============================================================================
--- stable/8/sys/dev/isp/isp_pci.c Sun Feb 28 04:12:29 2010 (r204441)
+++ stable/8/sys/dev/isp/isp_pci.c Sun Feb 28 06:07:53 2010 (r204442)
@@ -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