mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Fix misallocation error in target mode.
MFC after: 1 day
This commit is contained in:
parent
0a431e0795
commit
32b3ec7df1
1 changed files with 1 additions and 1 deletions
|
|
@ -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