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
F102914623: D46846.diff
Mon, Nov 18, 4:56 PM
Unknown Object (File)
Sat, Nov 16, 7:50 PM
Unknown Object (File)
Fri, Nov 15, 9:50 AM
Unknown Object (File)
Fri, Nov 8, 10:52 PM
Unknown Object (File)
Tue, Nov 5, 8:52 AM
Unknown Object (File)
Fri, Nov 1, 9:18 PM
Unknown Object (File)
Thu, Oct 31, 2:42 PM
Unknown Object (File)
Wed, Oct 30, 6:26 AM
Subscribers

Diff Detail

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

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).