Re: [PATCH] drm/mediatek: Initialize pointer before use to avoid undefiend behaviour

From: Markus Elfring
Date: Tue Dec 24 2024 - 11:10:46 EST


> Initialize the pointer with NULL as mtk_drm_of_get_ddp_ep_cid
> function might return before assigning value to next pointer
> but yet further dereference to next can lead to some undefined
> behavior as it may point to some invalid location.

* You may occasionally put more than 62 characters into text lines
of such a change description.

* Please avoid a typo the summary phrase.



> ---
> Coverity Message:
> CID 1601557: (#1 of 1): Uninitialized pointer read (UNINIT)
> 3. uninit_use: Using uninitialized value next.

May such information become a part for the final change description?

Regards,
Markus