Page MenuHomeFreeBSD

libhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()
ClosedPublic

Authored by olce on Jan 5 2024, 2:18 PM.
Tags
None
Referenced Files
F166478264: D43328.id132336.diff
Thu, Aug 13, 7:19 PM
Unknown Object (File)
Wed, Aug 12, 5:19 PM
Unknown Object (File)
Wed, Aug 12, 5:28 AM
Unknown Object (File)
Tue, Aug 11, 11:52 PM
Unknown Object (File)
Mon, Aug 10, 5:36 PM
Unknown Object (File)
Sat, Aug 8, 11:18 PM
Unknown Object (File)
Jun 26 2026, 3:47 AM
Unknown Object (File)
Jun 25 2026, 9:30 AM
Subscribers

Details

Summary

Using calloc() instead of malloc() is useless here since the allocated
memory is to be wholly crushed by the memcpy() call that follows.

Suggested by: kib
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 55258
Build 52147: arc lint + arc unit

Event Timeline

olce requested review of this revision.Jan 5 2024, 2:18 PM
This revision is now accepted and ready to land.Jan 5 2024, 2:57 PM

The typo in the title ("libhtr" => "libthr") will be fixed on commit.