summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/display
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2024-08-12 15:23:11 +0300
committerJani Nikula <jani.nikula@intel.com>2024-08-29 11:22:37 +0300
commit4548f10bf4c67b569b7c9fbc6746340a558faab9 (patch)
treed60d474f3bf7e8bb63ee5e345897dea9b25c17a7 /drivers/gpu/drm/display
parent33929707b808ba7839c40c15d3e68cbc51070b31 (diff)
downloadlwn-4548f10bf4c67b569b7c9fbc6746340a558faab9.tar.gz
lwn-4548f10bf4c67b569b7c9fbc6746340a558faab9.zip
drm/mst: switch to guid_gen() to generate valid GUIDs
Instead of just smashing jiffies into a GUID, use guid_gen() to generate RFC 4122 compliant GUIDs. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240812122312.1567046-2-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/display')
-rw-r--r--drivers/gpu/drm/display/drm_dp_mst_topology.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c
index 382e05cb18d7..e8695e390686 100644
--- a/drivers/gpu/drm/display/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c
@@ -2698,18 +2698,10 @@ static void drm_dp_mst_link_probe_work(struct work_struct *work)
static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr,
guid_t *guid)
{
- u64 salt;
- u8 buf[UUID_SIZE];
-
if (!guid_is_null(guid))
return true;
- salt = get_jiffies_64();
-
- memcpy(&buf[0], &salt, sizeof(u64));
- memcpy(&buf[8], &salt, sizeof(u64));
-
- import_guid(guid, buf);
+ guid_gen(guid);
return false;
}