drm/i915: Initialize 'data' in intel_dsi_dcs_backlight.c
authorBalasubramaniam, Hari Chand <hari.chand.balasubramaniam@intel.com>
Tue, 15 Aug 2017 02:05:46 +0000 (10:05 +0800)
committerJani Nikula <jani.nikula@intel.com>
Wed, 16 Aug 2017 15:02:00 +0000 (18:02 +0300)
commit211b7aac5443d347ff7b6dabf54702b40228cfaf
tree735be7e0bfa4f28e40efead5329091f430612fc3
parent781cc76e0c2469cb7ac12ba238a4ea006978e321
drm/i915: Initialize 'data' in intel_dsi_dcs_backlight.c

variable 'data' may be 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.

v2: Change commit message to reflect upstream with proper message

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>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1502762746-191826-1-git-send-email-hari.chand.balasubramaniam@intel.com
(cherry picked from commit d59814a5b4852442e1d03c569a4542f8b08356a7)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c