mirror_ubuntu-kernels/drivers/gpu/drm/amd/display/modules
Bhawanpreet Lakha a1acc5d094 drm/amd/display: Fix static analysis bug in validate_bksv
[Why]
static analysis throws the error below

Out-of-bounds read (OVERRUN)
Overrunning array of 5 bytes at byte offset 7 by dereferencing pointer
(uint64_t *)hdcp->auth.msg.hdcp1.bksv.

var n is going to contain  r0p and bcaps. if they are non-zero the count
will be wrong

How]
Use memcpy instead to avoid this.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-11-19 10:12:54 -05:00
..
color drm/amd/display: remove set but not used variable 'min_content' 2019-11-19 10:12:51 -05:00
freesync drm/amd/display: Add capability check for static ramp calc 2019-10-10 19:34:20 -05:00
hdcp drm/amd/display: Fix static analysis bug in validate_bksv 2019-11-19 10:12:54 -05:00
inc drm/amd/display: Refactor HDCP encryption status update 2019-11-19 10:12:53 -05:00
info_packet drm/amd/display: set MSA MISC1 bit 6 while sending colorimetry in VSC SDP 2019-11-13 15:29:43 -05:00
power drm/amd/display: set minimum abm backlight level 2019-10-03 09:10:57 -05:00
stats drm/amd/display: remove redundant null pointer check before kfree 2018-09-26 21:09:12 -05:00
vmid drm/amd/display: add missing mod_vmid destructor 2019-06-22 09:34:14 -05:00