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)
Tue, Dec 2, 12:07 AM
Unknown Object (File)
Mon, Nov 24, 6:27 AM
Unknown Object (File)
Mon, Nov 24, 3:57 AM
Unknown Object (File)
Mon, Nov 24, 12:26 AM
Unknown Object (File)
Sun, Nov 23, 10:38 PM
Unknown Object (File)
Nov 3 2025, 9:35 AM
Unknown Object (File)
Oct 26 2025, 12:39 AM
Unknown Object (File)
Oct 25 2025, 5:21 AM

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