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)
Sep 27 2024, 9:57 AM
Unknown Object (File)
Sep 24 2024, 9:29 AM
Unknown Object (File)
Sep 23 2024, 11:26 PM
Unknown Object (File)
Sep 23 2024, 2:13 AM
Unknown Object (File)
Sep 18 2024, 12:27 AM
Unknown Object (File)
Sep 17 2024, 6:07 AM
Unknown Object (File)
Sep 17 2024, 2:42 AM
Unknown Object (File)
Sep 15 2024, 11:32 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