The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=fd1312d3629cda9691c67af6154946cd55467076
commit fd1312d3629cda9691c67af6154946cd55467076 Author: Christos Margiolis <[email protected]> AuthorDate: 2026-01-02 16:57:06 +0000 Commit: Christos Margiolis <[email protected]> CommitDate: 2026-01-02 16:58:06 +0000 sound: Allocate mpu401 with M_WAITOK Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/dev/sound/midi/mpu401.c | 5 +---- 1 file changed, 1 insertion(+), 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);
