Skip to content

Commit 4548f10

Browse files
committed
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 <[email protected]> Acked-by: Harry Wentland <[email protected]> Acked-by: Alex Deucher <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Jani Nikula <[email protected]>
1 parent 3392970 commit 4548f10

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

drivers/gpu/drm/display/drm_dp_mst_topology.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,18 +2698,10 @@ static void drm_dp_mst_link_probe_work(struct work_struct *work)
26982698
static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr,
26992699
guid_t *guid)
27002700
{
2701-
u64 salt;
2702-
u8 buf[UUID_SIZE];
2703-
27042701
if (!guid_is_null(guid))
27052702
return true;
27062703

2707-
salt = get_jiffies_64();
2708-
2709-
memcpy(&buf[0], &salt, sizeof(u64));
2710-
memcpy(&buf[8], &salt, sizeof(u64));
2711-
2712-
import_guid(guid, buf);
2704+
guid_gen(guid);
27132705

27142706
return false;
27152707
}

0 commit comments

Comments
 (0)