diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2026-01-02 16:57:06 +0000 |
|---|---|---|
| committer | Christos Margiolis <christos@FreeBSD.org> | 2026-01-02 16:58:06 +0000 |
| commit | fd1312d3629cda9691c67af6154946cd55467076 (patch) | |
| tree | 9b95236cb5920607c194e3333a8939e08421c5c3 | |
| parent | 3f8a85a085c710f50b8bcd4efe915268882129d2 (diff) | |
sound: Allocate mpu401 with M_WAITOK
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
| -rw-r--r-- | sys/dev/sound/midi/mpu401.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/sound/midi/mpu401.c b/sys/dev/sound/midi/mpu401.c index 500e15c79497..d3fb6b214d3e 100644 --- a/sys/dev/sound/midi/mpu401.c +++ b/sys/dev/sound/midi/mpu401.c @@ -142,10 +142,7 @@ mpu401_init(kobj_class_t cls, void *cookie, driver_intr_t softintr, struct mpu401 *m; *cb = NULL; - m = malloc(sizeof(*m), M_MIDI, M_NOWAIT | M_ZERO); - - if (!m) - return NULL; + m = malloc(sizeof(*m), M_MIDI, M_WAITOK | M_ZERO); kobj_init((kobj_t)m, cls); |
