mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
fwip(4): Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45852
(cherry picked from commit 4d47c7ca7b
)
This commit is contained in:
parent
6515ef4d2b
commit
f3af527260
@ -304,13 +304,9 @@ fwip_init(void *arg)
|
||||
xferq->psize = MCLBYTES;
|
||||
xferq->queued = 0;
|
||||
xferq->buf = NULL;
|
||||
xferq->bulkxfer = (struct fw_bulkxfer *) malloc(
|
||||
xferq->bulkxfer = malloc(
|
||||
sizeof(struct fw_bulkxfer) * xferq->bnchunk,
|
||||
M_FWIP, M_WAITOK);
|
||||
if (xferq->bulkxfer == NULL) {
|
||||
printf("if_fwip: malloc failed\n");
|
||||
return;
|
||||
}
|
||||
STAILQ_INIT(&xferq->stvalid);
|
||||
STAILQ_INIT(&xferq->stfree);
|
||||
STAILQ_INIT(&xferq->stdma);
|
||||
|
Loading…
Reference in New Issue
Block a user