mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Fix misallocation error in target mode.
MFC after: 1 day
This commit is contained in:
parent
0a431e0795
commit
32b3ec7df1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204384
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue