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)
Feb 7 2024, 1:12 PM
Unknown Object (File)
Jan 14 2024, 7:28 AM
Unknown Object (File)
Dec 20 2023, 5:52 AM
Unknown Object (File)
Nov 21 2023, 9:11 AM
Unknown Object (File)
Oct 9 2023, 6:15 PM
Unknown Object (File)
Oct 9 2023, 6:15 PM
Unknown Object (File)
Aug 15 2023, 2:33 AM
Unknown Object (File)
Aug 15 2023, 12:57 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