aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
diff options
context:
space:
mode:
authorDavid Ward <[email protected]>2021-05-10 09:30:39 +0000
committerAlex Deucher <[email protected]>2021-05-11 13:43:41 +0000
commit29b25b7067a4fa92afd379ebd7c16b9cbed5e0c0 (patch)
treef6113577ededc61d146b8b93b95836ccf50e2ef9 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
parentdrm/amd/pm: Fix out-of-bounds bug (diff)
downloadkernel-29b25b7067a4fa92afd379ebd7c16b9cbed5e0c0.tar.gz
kernel-29b25b7067a4fa92afd379ebd7c16b9cbed5e0c0.zip
drm/amd/display: Initialize attribute for hdcp_srm sysfs file
It is stored in dynamically allocated memory, so sysfs_bin_attr_init() must be called to initialize it. (Note: "initialization" only sets the .attr.key member in this struct; it does not change the value of any other members.) Otherwise, when CONFIG_DEBUG_LOCK_ALLOC=y this message appears during boot: BUG: key ffff9248900cd148 has not been registered! Fixes: 9037246bb2da ("drm/amd/display: Add sysfs interface for set/get srm") Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1586 Reported-by: Mikhail Gavrilov <[email protected]> Signed-off-by: David Ward <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
0 files changed, 0 insertions, 0 deletions