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)
Feb 1 2024, 8:50 PM
Unknown Object (File)
Dec 20 2023, 7:35 AM
Unknown Object (File)
Nov 11 2023, 5:58 PM
Unknown Object (File)
Nov 11 2023, 9:34 AM
Unknown Object (File)
Oct 10 2023, 4:57 PM
Unknown Object (File)
Oct 10 2023, 8:39 AM
Unknown Object (File)
Aug 14 2023, 10:30 AM
Unknown Object (File)
Jul 2 2023, 3:49 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.