diff options
author | mjacob <mjacob@FreeBSD.org> | 2010-02-27 01:58:41 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2010-02-27 01:58:41 +0000 |
commit | 03ed16bc8d8a8762829966141dfdd23ecc2cd482 (patch) | |
tree | b5b05efb3f3f762aaf29c37d72d8fcafc68ebde3 /sys/dev/isp | |
parent | 40da08a8a7737dedbad20c6418d474ab005bb83f (diff) | |
download | FreeBSD-src-03ed16bc8d8a8762829966141dfdd23ecc2cd482.zip FreeBSD-src-03ed16bc8d8a8762829966141dfdd23ecc2cd482.tar.gz |
Fix misallocation error in target mode.
MFC after: 1 day
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 4eb2e0c..257dd2c 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -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); |