[PATCH] drm/sun4i: fix refcount leak in sun4i_backend_init_sat()

Chen-Yu Tsai wens at kernel.org
Mon Jul 6 10:30:18 PDT 2026


On Sun, 07 Jun 2026 03:09:50 +0000, Wentao Liang wrote:
> When sun4i_backend_init_sat() calls reset_control_deassert() it
> increments the deassert_count of the reset controller, and must
> pair that with a reset_control_assert() call to decrement it.
> In the error path where clk_prepare_enable() fails, the function
> returns immediately without calling reset_control_assert(), leaking
> the reference count.  Other error paths, like the devm_clk_get()
> failure, correctly jump to the err_assert_reset label which performs
> the missing assert.
> 
> [...]

Applied to drm-misc-next in drm-misc, thanks!

[1/1] drm/sun4i: fix refcount leak in sun4i_backend_init_sat()
      commit: f7a56ff6240e6fd0cb36a3c0a911a1cd54789ce2

Best regards,
-- 
Chen-Yu Tsai <wens at kernel.org>




More information about the linux-arm-kernel mailing list