From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Yetunde Adebisi <yetundex.adebisi@intel.com>,
Daniel Vetter <daniel.vetter@intel.com>,
Deepak M <m.deepak@intel.com>,
"Balasubramaniam,
Hari Chand" <hari.chand.balasubramaniam@intel.com>
Subject: Re: [PATCH] drm/i915: Initialize 'data' in intel_dsi_dcs_backlight.c
Date: Tue, 15 Aug 2017 11:07:35 +0300 [thread overview]
Message-ID: <87h8x9ckzc.fsf@nikula.org> (raw)
In-Reply-To: <1502762746-191826-1-git-send-email-hari.chand.balasubramaniam@intel.com>
On Tue, 15 Aug 2017, "Balasubramaniam, Hari Chand" <hari.chand.balasubramaniam@intel.com> wrote:
> variable 'data'is used uninitialized in this function. thus, 'function dcs_get_backlight'
> will return unwanted value/fail.
>
> Thus, adding NULL initialized to 'data' variable will solve the return
> failure happening.
Pushed to drm-intel-next-queued, thanks for the patch.
BR,
Jani.
>
> v2: Change commit message to reflect upstream with proper message
>
> Change-Id: I3e2d3369601c119d3527efc454ea4367d7306416
> Fixes: 90198355b83c ("drm/i915/dsi: Add DCS control for Panel PWM")
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> Cc: Yetunde Adebisi <yetundex.adebisi@intel.com>
> Cc: Deepak M <m.deepak@intel.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Signed-off-by: Balasubramaniam, Hari Chand <hari.chand.balasubramaniam@intel.com>
> ---
> drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c b/drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c
> index ac7c602..eec4585 100644
> --- a/drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c
> +++ b/drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c
> @@ -46,7 +46,7 @@ static u32 dcs_get_backlight(struct intel_connector *connector)
> struct intel_encoder *encoder = connector->encoder;
> struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base);
> struct mipi_dsi_device *dsi_device;
> - u8 data;
> + u8 data = 0;
> enum port port;
>
> /* FIXME: Need to take care of 16 bit brightness level */
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-08-15 8:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 8:00 [PATCH] drm/i915: KW fix in intel_dsi_dcs_backlight.c Balasubramaniam, Hari Chand
2017-08-03 8:23 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-08-03 12:39 ` [PATCH] " Jani Nikula
2017-08-15 2:05 ` [PATCH] drm/i915: Initialize 'data' " Balasubramaniam, Hari Chand
2017-08-15 8:07 ` Jani Nikula [this message]
2017-08-15 8:17 ` ✓ Fi.CI.BAT: success for drm/i915: KW fix in intel_dsi_dcs_backlight.c (rev2) 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=87h8x9ckzc.fsf@nikula.org \
--to=jani.nikula@intel.com \
--cc=daniel.vetter@intel.com \
--cc=hari.chand.balasubramaniam@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=m.deepak@intel.com \
--cc=yetundex.adebisi@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox