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, May 19, 12:30 PM
Unknown Object (File)
Tue, May 19, 5:41 AM
Unknown Object (File)
Mon, May 18, 1:27 PM
Unknown Object (File)
Sat, May 16, 8:06 AM
Unknown Object (File)
Fri, May 15, 5:27 PM
Unknown Object (File)
Fri, May 15, 5:27 PM
Unknown Object (File)
Fri, May 15, 5:09 PM
Unknown Object (File)
Sat, May 9, 5:05 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