From: Jani Nikula <jani.nikula@intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/sdvo: ignore returned broken edid on intel_sdvo_tmds_sink_detect
Date: Thu, 03 Aug 2023 18:24:05 +0300 [thread overview]
Message-ID: <873510up2i.fsf@intel.com> (raw)
In-Reply-To: <20230803143530.27601-1-juhapekka.heikkila@gmail.com>
On Thu, 03 Aug 2023, Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> wrote:
> If drm_edid_raw returned NULL on error don't try accessing anything behind
> that NULL
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.c b/drivers/gpu/drm/i915/display/intel_sdvo.c
> index 8298a86d1334..065e619f934f 100644
> --- a/drivers/gpu/drm/i915/display/intel_sdvo.c
> +++ b/drivers/gpu/drm/i915/display/intel_sdvo.c
> @@ -2097,7 +2097,7 @@ intel_sdvo_tmds_sink_detect(struct drm_connector *connector)
> const struct edid *edid = drm_edid_raw(drm_edid);
>
> /* DDC bus is shared, match EDID to connector type */
> - if (edid->input & DRM_EDID_INPUT_DIGITAL)
> + if (edid && edid->input & DRM_EDID_INPUT_DIGITAL)
> status = connector_status_connected;
> else
> status = connector_status_disconnected;
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-08-03 15:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-03 14:35 [Intel-gfx] [PATCH] drm/i915/sdvo: ignore returned broken edid on intel_sdvo_tmds_sink_detect Juha-Pekka Heikkila
2023-08-03 15:24 ` Jani Nikula [this message]
2023-08-04 13:17 ` Hogander, Jouni
2023-08-03 17:57 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-08-03 17:57 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-08-03 18:15 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-04 1:15 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873510up2i.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.