Re: [PATCH v2] drm/atmel_hlcdc: Fix uninitialized variable

From: Dmitry Baryshkov
Date: Mon Oct 14 2024 - 03:39:19 EST


On Mon, Oct 07, 2024 at 08:39:04PM +0530, Advait Dhamorikar wrote:
> atmel_hlcdc_plane_update_buffers: may use an uninitialized
> sr variable when the if condition remains unsatisfied.
> The variable may contain an arbitrary value left from earlier computations.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <error27@xxxxxxxxx>
> Closes: https://lore.kernel.org/r/202409240320.MZPgi3Up-lkp@xxxxxxxxx/
> Signed-off-by: Advait Dhamorikar <advaitdhamorikar@xxxxxxxxx>

Fixes: d498771b0b83 ("drm: atmel_hlcdc: Add support for XLCDC using IP specific driver ops")

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>

--
With best wishes
Dmitry