All of lore.kernel.org
 help / color / mirror / Atom feed
From: Suraj Kandpal <suraj.kandpal@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: chaitanya.kumar.borah@intel.com, Suraj Kandpal <suraj.kandpal@intel.com>
Subject: [PATCH 1/2] drm/i915/display: Initialize capability variables
Date: Wed, 27 Mar 2024 10:14:22 +0530	[thread overview]
Message-ID: <20240327044422.240398-3-suraj.kandpal@intel.com> (raw)
In-Reply-To: <20240327044422.240398-2-suraj.kandpal@intel.com>

Initialize HDCP capability variables to false to avoid UBSAN
warning in boolean value.

--v2
-Fix Typo [Chaitanya]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index b99c024b0934..95d14dab089e 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -191,7 +191,7 @@ static void intel_hdcp_info(struct seq_file *m,
 			    struct intel_connector *intel_connector,
 			    bool remote_req)
 {
-	bool hdcp_cap, hdcp2_cap;
+	bool hdcp_cap = false, hdcp2_cap = false;
 
 	if (!intel_connector->hdcp.shim) {
 		seq_puts(m, "No Connector Support");
-- 
2.43.2


  reply	other threads:[~2024-03-27  4:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-27  4:44 [PATCH 0/2] Fix UBSAN warning in hdcp_info Suraj Kandpal
2024-03-27  4:44 ` Suraj Kandpal [this message]
2024-03-28 10:22   ` [PATCH 1/2] drm/i915/display: Initialize capability variables Borah, Chaitanya Kumar
2024-03-27  4:44 ` [PATCH 2/2] drm/i915/hdcp: Fix get remote hdcp capability function Suraj Kandpal
2024-03-28 10:26   ` Borah, Chaitanya Kumar
2024-03-28 10:51     ` Borah, Chaitanya Kumar
2024-03-27  5:52 ` ✗ Fi.CI.SPARSE: warning for Fix UBSAN warning in hdcp_info Patchwork
2024-03-27  6:05 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-04-01  3:01 [PATCH 0/2] " Suraj Kandpal
2024-04-01  3:01 ` [PATCH 1/2] drm/i915/display: Initialize capability variables Suraj Kandpal

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=20240327044422.240398-3-suraj.kandpal@intel.com \
    --to=suraj.kandpal@intel.com \
    --cc=chaitanya.kumar.borah@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.