Page MenuHomeFreeBSD

sound: Improve snd_midi->{in,out}q allocation
ClosedPublic

Authored by christos on Dec 8 2025, 5:13 PM.
Tags
None
Referenced Files
F171076568: D54131.id167722.diff
Tue, Sep 8, 1:45 PM
Unknown Object (File)
Sun, Sep 6, 2:11 PM
Unknown Object (File)
Sun, Sep 6, 3:40 AM
Unknown Object (File)
Sat, Sep 5, 11:19 PM
Unknown Object (File)
Sat, Sep 5, 1:51 PM
Unknown Object (File)
Fri, Sep 4, 11:37 PM
Unknown Object (File)
Fri, Sep 4, 8:39 PM
Unknown Object (File)
Fri, Sep 4, 6:52 AM
Subscribers

Details

Summary

Currently we lock and allocate the buffers with M_NOWAIT, without
checking if the return value of malloc(). This is not necessary as
subsequent check below will eventually check that. However, for
correctness, allocate the buffers with M_WAITOK (there is no reason not
to) and lock afterwards.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69129
Build 66012: arc lint + arc unit