diff options
author | David Ward <[email protected]> | 2021-05-10 05:30:39 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-05-13 10:46:06 -0400 |
commit | fe1c97d008f86f672f0e9265f180c22451ca3b9f (patch) | |
tree | e07172df310c03b6e627b0be1249f83215281ce3 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 939baec9e895e75149327c01b775f46c21e12be5 (diff) |
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]>
Cc: [email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions