Page MenuHomeFreeBSD

Make use of mallocarray in sys/netpfil/ipfw
ClosedPublic

Authored by pfg on Jan 10 2018, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 7:59 AM
Unknown Object (File)
Sat, Dec 7, 6:00 AM
Unknown Object (File)
Oct 7 2024, 3:50 AM
Unknown Object (File)
Oct 7 2024, 3:50 AM
Unknown Object (File)
Oct 7 2024, 3:50 AM
Unknown Object (File)
Oct 7 2024, 3:25 AM
Unknown Object (File)
Oct 1 2024, 7:56 AM
Unknown Object (File)
Sep 30 2024, 6:11 AM
Subscribers

Details

Summary

I found these cases where we can use mallocarray and since we are using
M_NOWAIT, the code is ready for the possibility of a NULL value returned.

Test Plan

Passed buildworld.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

pfg edited the test plan for this revision. (Show Details)

ae@ is probably the best person to talk to about ipfw, so you may want to cc him too.

That said, this is pretty straightforward and it looks right to me.

This revision is now accepted and ready to land.Jan 10 2018, 8:40 PM
pfg retitled this revision from Make use of mallocarray in sys/netpfil/ipfs to Make use of mallocarray in sys/netpfil/ipfw.
pfg added a reviewer: ae.

This looks like noop for me, so I have no objection.

This revision was automatically updated to reflect the committed changes.