Page MenuHomeFreeBSD

linuxkpi: Support non-NULL zero-size pointers
ClosedPublic

Authored by dumbbell on Mar 13 2023, 2:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jul 2 2025, 4:20 PM
Unknown Object (File)
Jun 16 2025, 7:21 PM
Unknown Object (File)
Jun 15 2025, 1:16 PM
Unknown Object (File)
Jun 14 2025, 8:59 PM
Unknown Object (File)
Jun 11 2025, 5:52 AM
Unknown Object (File)
Jun 9 2025, 3:42 PM
Unknown Object (File)
May 12 2025, 10:03 PM
Unknown Object (File)
May 4 2025, 10:55 PM

Details

Summary

DRM drivers set some pointers to ZERO_SIZE_PTR directly (without allocating anything), to treat pointers which were "initialized" (set to ZERO_SIZE_PTR) with no memory allocation like really allocated pointers. NULL isn't used because it represents a third state.

This is part of the update of the DRM drivers to Linux 5.17.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable