1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

cxgbe(4): Stop checking for failures from malloc/mb_alloc_ext_pgs(M_WAITOK)

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 955b380365)
(cherry picked from commit 09ed34449c)
This commit is contained in:
Zhenlei Huang 2024-09-03 18:25:26 +08:00
parent 09491167a5
commit be61ff389f
2 changed files with 0 additions and 8 deletions

View File

@ -842,9 +842,6 @@ cxgbei_activate(struct adapter *sc)
/* per-adapter softc for iSCSI */
ci = malloc(sizeof(*ci), M_CXGBE, M_ZERO | M_WAITOK);
if (ci == NULL)
return (ENOMEM);
rc = cxgbei_init(sc, ci);
if (rc != 0) {
free(ci, M_CXGBE);

View File

@ -2138,11 +2138,6 @@ alloc_aiotx_mbuf(struct kaiocb *job, int len)
break;
m = mb_alloc_ext_pgs(M_WAITOK, aiotx_free_pgs);
if (m == NULL) {
vm_page_unhold_pages(pgs, npages);
break;
}
m->m_epg_1st_off = pgoff;
m->m_epg_npgs = npages;
if (npages == 1) {