Page MenuHomeFreeBSD

ngatm: Handle errors from uni_msg_extend()
ClosedPublic

Authored by markj on Jun 2 2021, 1:55 PM.
Tags
None
Referenced Files
F170522678: D30611.id.diff
Sat, Sep 5, 5:42 AM
F170441842: D30611.id90320.diff
Fri, Sep 4, 8:33 PM
F170412575: D30611.diff
Fri, Sep 4, 5:19 PM
Unknown Object (File)
Fri, Sep 4, 2:01 AM
Unknown Object (File)
Thu, Sep 3, 10:59 PM
Unknown Object (File)
Thu, Sep 3, 5:38 AM
Unknown Object (File)
Wed, Sep 2, 5:04 PM
Unknown Object (File)
Wed, Sep 2, 4:55 PM
Subscribers

Details

Summary

uni_msg_extend() may fail due to a memory allocation failure. In this
case, though, the message is freed, so callers shouldn't touch it.

PR: 255861
MFC after: 1 week

Diff Detail

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

Event Timeline

markj requested review of this revision.Jun 2 2021, 1:55 PM

This looks good to me. Good catch.

harti

This revision was not accepted when it landed; it landed in state Needs Review.Jun 6 2021, 8:47 PM
This revision was automatically updated to reflect the committed changes.