diff options
author | Anshuman Gupta <anshuman.gupta@intel.com> | 2021-04-08 13:56:42 +0530 |
---|---|---|
committer | Anshuman Gupta <anshuman.gupta@intel.com> | 2021-04-09 12:30:05 +0530 |
commit | 28972f821ea773edaae2d40444bd08a33c9a46a5 (patch) | |
tree | 9e1bb6ea27f0a30157dd856fb4a4e3b76ab8e858 | |
parent | f99b805fb9413ff007ca0b6add871737664117dd (diff) | |
download | linux-stable-28972f821ea773edaae2d40444bd08a33c9a46a5.tar.gz linux-stable-28972f821ea773edaae2d40444bd08a33c9a46a5.tar.bz2 linux-stable-28972f821ea773edaae2d40444bd08a33c9a46a5.zip |
drm/i915/hdcp: Fix uninitialized symbol 'msg_end'
Fix static analysis tool uninitialized symbol error.
v2:
- use ktime_set(0, 0) instead to initialize to zero. [Ankit]
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210408082642.27066-1-anshuman.gupta@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c index 90868e156c69..2dd9360bdf9a 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c +++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c @@ -532,7 +532,7 @@ int intel_dp_hdcp2_read_msg(struct intel_digital_port *dig_port, u8 *byte = buf; ssize_t ret, bytes_to_recv, len; const struct hdcp2_dp_msg_data *hdcp2_msg_data; - ktime_t msg_end; + ktime_t msg_end = ktime_set(0, 0); bool msg_expired; hdcp2_msg_data = get_hdcp2_dp_msg_data(msg_id); |