Not sure there is any chance of an overflow here but perhaps this also
makes the code easier to read.
Details
Details
- Reviewers
erj sbruno - Group Reviewers
Intel Networking - Commits
- rS327828: dev/(e1000,ixl): Make some use of mallocarray(9).
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Why didn't they provide a calloc(), to follow the malloc()/free() pattern?
(It looks like this was introduced in rS327674)
Comment Actions
And I forgot that not everyone wants the memory they allocate to be zeroed, though the driver zeroes it in all of the calls that are being replaced here.