[lvc-project] [PATCH] drm: imx-dcss: Check return value of drm_mode_config_helper_suspend()

Laurentiu Palcu laurentiu.palcu at oss.nxp.com
Wed Nov 25 11:28:26 MSK 2026


Hi Denis,

On Thu, Nov 19, 2026 at 02:30:29PM +0300, Denis Arefev wrote:
> dcss_dev_suspend() ignores the return value of 
> drm_mode_config_helper_suspend(). On failure that helper rolls back its
> partial work (re-enables fbdev and polling) and leaves
> mode_config.suspend_state unset, i.e. the DRM side is not suspended.
> Continuing to suspend the context loader and disable the clocks then
> leaves the device in an inconsistent state.
> 
> Check the return value and propagate the error to the PM core, as the
> other DRM drivers calling this helper do.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 9021c317b770 ("drm/imx: Add initial support for DCSS on iMX8MQ")
> Cc: stable at vger.kernel.org
> Signed-off-by: Denis Arefev <arefev at swemel.ru>

Reviewed-by: Laurentiu Palcu <laurentiu.palcu at oss.nxp.com>

-- 
Thanks,
Laurentiu



More information about the lvc-project mailing list