Page MenuHomeFreeBSD

ngatm: Handle errors from uni_msg_extend()
ClosedPublic

Authored by markj on Jun 2 2021, 1:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 17, 1:43 AM
Unknown Object (File)
Sun, Nov 17, 1:18 AM
Unknown Object (File)
Oct 18 2024, 4:48 PM
Unknown Object (File)
Oct 15 2024, 6:44 PM
Unknown Object (File)
Oct 3 2024, 10:26 AM
Unknown Object (File)
Oct 3 2024, 1:13 AM
Unknown Object (File)
Sep 30 2024, 11:11 PM
Unknown Object (File)
Sep 30 2024, 3:32 AM
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.