Page MenuHomeFreeBSD

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

Authored by christos on Sun, Sep 29, 2:09 PM.

Details

Summary

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

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.Sun, Sep 29, 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).