mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
aspeed_video_init() calls of_reserved_mem_device_init() to associate
reserved memory regions with the device. When aspeed_video_setup_video()
subsequently fails in aspeed_video_probe(), the error path frees the
JPEG buffer and unprepares the clocks but does not release the reserved
memory association, leaking the rmem_assigned_device entry on the global
list.
The normal remove path already calls of_reserved_mem_device_release()
correctly; only the probe error path was missing it.
Add the missing of_reserved_mem_device_release() call to the
aspeed_video_setup_video() failure cleanup.
Fixes:
|
||
|---|---|---|
| .. | ||
| aspeed-video.c | ||
| Kconfig | ||
| Makefile | ||