Page MenuHomeFreeBSD

sound: Do not check for NULL if sbuf is allocated with SBUF_AUTOEXTEND
ClosedPublic

Authored by christos on Sep 29 2024, 2:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 21, 7:53 AM
Unknown Object (File)
Sun, Oct 12, 4:44 PM
Unknown Object (File)
Sun, Oct 12, 3:17 PM
Unknown Object (File)
Sep 26 2025, 1:52 AM
Unknown Object (File)
Sep 15 2025, 11:38 AM
Unknown Object (File)
Sep 15 2025, 10:18 AM
Unknown Object (File)
Sep 9 2025, 7:37 PM
Unknown Object (File)
Aug 18 2025, 11:16 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Sep 29 2024, 4:43 PM

Should we clarify this case in sbuf(9), either with the SBUF_AUTOEXTEND description or in the RETURN VALUES section for sbuf_new?

Across the tree there's a mix of checking for NULL with SBUF_AUTOEXTEND and not checking, sometimes both cases in the same file (sys/dev/acpica/acpi.c).