* [PATCH] drm/tegra: fix potential uninitialized variable use
@ 2024-09-02 16:13 Jani Nikula
2024-09-03 11:58 ` Thierry Reding
0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2024-09-02 16:13 UTC (permalink / raw)
To: dri-devel
Cc: jani.nikula, kernel test robot, Thierry Reding, Daniel Vetter,
linux-tegra
It's likely either output->drm_edid or output->ddc is non-NULL, but
avoid the uninitialized variable usage anyway.
Reported-by: kernel test robot <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/ZtXLyXxew7z6H2bD@stanley.mountain
Fixes: 98365ca74cbf ("drm/tegra: convert to struct drm_edid")
Cc: Thierry Reding <treding@nvidia.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/tegra/output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index e6b5863fec71..49e4f63a5550 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -21,7 +21,7 @@
int tegra_output_connector_get_modes(struct drm_connector *connector)
{
struct tegra_output *output = connector_to_output(connector);
- const struct drm_edid *drm_edid;
+ const struct drm_edid *drm_edid = NULL;
int err = 0;
/*
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] drm/tegra: fix potential uninitialized variable use
2024-09-02 16:13 [PATCH] drm/tegra: fix potential uninitialized variable use Jani Nikula
@ 2024-09-03 11:58 ` Thierry Reding
2024-09-03 16:25 ` Jani Nikula
0 siblings, 1 reply; 3+ messages in thread
From: Thierry Reding @ 2024-09-03 11:58 UTC (permalink / raw)
To: Jani Nikula
Cc: dri-devel, kernel test robot, Thierry Reding, Daniel Vetter,
linux-tegra
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
On Mon, Sep 02, 2024 at 07:13:17PM GMT, Jani Nikula wrote:
> It's likely either output->drm_edid or output->ddc is non-NULL, but
> avoid the uninitialized variable usage anyway.
>
> Reported-by: kernel test robot <dan.carpenter@linaro.org>
> Closes: https://lore.kernel.org/r/ZtXLyXxew7z6H2bD@stanley.mountain
> Fixes: 98365ca74cbf ("drm/tegra: convert to struct drm_edid")
> Cc: Thierry Reding <treding@nvidia.com>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Cc: linux-tegra@vger.kernel.org
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/tegra/output.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Do you want to apply this or should I? In the former case:
Acked-by: Thierry Reding <treding@nvidia.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/tegra: fix potential uninitialized variable use
2024-09-03 11:58 ` Thierry Reding
@ 2024-09-03 16:25 ` Jani Nikula
0 siblings, 0 replies; 3+ messages in thread
From: Jani Nikula @ 2024-09-03 16:25 UTC (permalink / raw)
To: Thierry Reding
Cc: dri-devel, kernel test robot, Thierry Reding, Daniel Vetter,
linux-tegra
On Tue, 03 Sep 2024, Thierry Reding <thierry.reding@gmail.com> wrote:
> On Mon, Sep 02, 2024 at 07:13:17PM GMT, Jani Nikula wrote:
>> It's likely either output->drm_edid or output->ddc is non-NULL, but
>> avoid the uninitialized variable usage anyway.
>>
>> Reported-by: kernel test robot <dan.carpenter@linaro.org>
>> Closes: https://lore.kernel.org/r/ZtXLyXxew7z6H2bD@stanley.mountain
>> Fixes: 98365ca74cbf ("drm/tegra: convert to struct drm_edid")
>> Cc: Thierry Reding <treding@nvidia.com>
>> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
>> Cc: linux-tegra@vger.kernel.org
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> drivers/gpu/drm/tegra/output.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Do you want to apply this or should I? In the former case:
>
> Acked-by: Thierry Reding <treding@nvidia.com>
Thanks, pushed to drm-misc-next.
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-03 16:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 16:13 [PATCH] drm/tegra: fix potential uninitialized variable use Jani Nikula
2024-09-03 11:58 ` Thierry Reding
2024-09-03 16:25 ` Jani Nikula
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.