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 commit955b380365
) (cherry picked from commit09ed34449c
)
This commit is contained in:
parent
09491167a5
commit
be61ff389f
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user