mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 11:14:18 +01:00
mxge(4): Stop checking for failures from taskqueue_create(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45853
This commit is contained in:
parent
57cd8f27b7
commit
7ea3fd3bb5
@ -4615,10 +4615,6 @@ mxge_attach(device_t dev)
|
|||||||
TASK_INIT(&sc->watchdog_task, 1, mxge_watchdog_task, sc);
|
TASK_INIT(&sc->watchdog_task, 1, mxge_watchdog_task, sc);
|
||||||
sc->tq = taskqueue_create("mxge_taskq", M_WAITOK,
|
sc->tq = taskqueue_create("mxge_taskq", M_WAITOK,
|
||||||
taskqueue_thread_enqueue, &sc->tq);
|
taskqueue_thread_enqueue, &sc->tq);
|
||||||
if (sc->tq == NULL) {
|
|
||||||
err = ENOMEM;
|
|
||||||
goto abort_with_nothing;
|
|
||||||
}
|
|
||||||
|
|
||||||
err = bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */
|
err = bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */
|
||||||
1, /* alignment */
|
1, /* alignment */
|
||||||
@ -4815,7 +4811,6 @@ abort_with_tq:
|
|||||||
taskqueue_free(sc->tq);
|
taskqueue_free(sc->tq);
|
||||||
sc->tq = NULL;
|
sc->tq = NULL;
|
||||||
}
|
}
|
||||||
abort_with_nothing:
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user