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)
Thu, Jan 23, 6:41 PM
Unknown Object (File)
Thu, Jan 23, 2:13 PM
Unknown Object (File)
Sun, Jan 19, 4:50 AM
Unknown Object (File)
Dec 21 2024, 3:53 PM
Unknown Object (File)
Dec 16 2024, 6:03 AM
Unknown Object (File)
Dec 13 2024, 12:33 PM
Unknown Object (File)
Dec 4 2024, 11:57 PM
Unknown Object (File)
Nov 18 2024, 9:25 PM
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).