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

Markus Elfring Markus.Elfring at web.de
Tue Dec 24 08:09:54 PST 2024


> 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



More information about the Linux-mediatek mailing list