Page MenuHomeFreeBSD

ngatm: Handle errors from uni_msg_extend()
ClosedPublic

Authored by markj on Jun 2 2021, 1:55 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.