Page MenuHomeFreeBSD

LinuxKPI: devres: divorce dem_kfree from lkpi_devm_kmalloc_release
ClosedPublic

Authored by bz on Aug 21 2025, 9:00 AM.
Tags
None
Referenced Files
F157078587: D52082.diff
Mon, May 18, 7:48 AM
Unknown Object (File)
Sun, May 17, 5:04 AM
Unknown Object (File)
Thu, May 14, 10:15 AM
Unknown Object (File)
Mon, May 11, 9:48 PM
Unknown Object (File)
Sat, May 9, 9:00 PM
Unknown Object (File)
Fri, May 8, 12:01 AM
Unknown Object (File)
Thu, May 7, 8:46 PM
Unknown Object (File)
Tue, May 5, 2:32 AM
Subscribers

Details

Summary

dem_kfree() is called from all over the place and should actually
do something; contrary to lkpi_devm_kmalloc_release() it can also
take a const void *. We have to __DECONST() that though as the
entire devres framework does otherwise not take a const argument.

This was discovered during the rtw89 upadte to 6.16.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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