(subset) [PATCH v2 0/6] media: Use devm_of_reserved_mem_device_init()

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 30 10:29:44 PST 2026


On Thu, 03 Sep 2026 01:36:57 +0530, Mukesh Ojha wrote:
> Several media drivers manually manage reserved memory lifetime by calling
> of_reserved_mem_device_init() in probe and of_reserved_mem_device_release()
> in remove. Drivers that fail to release on every error path between the two
> calls leak the reserved memory region until the driver is unloaded.
> 
> devm_of_reserved_mem_device_init() was recently introduced to tie the
> release to the device's devres lifetime automatically. Convert the affected
> media drivers to use it, removing the manual release calls and any wrapper
> devres actions.
> 
> [...]

Applied, thanks!

[6/6] staging: media: cedrus: Use devm_of_reserved_mem_device_init()
      commit: 0948cdb2ebfd7359f9f670341e003017a7323ce5

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne at collabora.com>



More information about the linux-arm-kernel mailing list