diff options
author | Saravana Kannan <[email protected]> | 2021-01-10 09:54:07 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-01-21 20:12:40 +0100 |
commit | e020ff611ba9be54e959e6b548038f8a020da1c9 (patch) | |
tree | f6e0ab7384c3ab85a71ec5568fdace8135312a12 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3d1cf435e201d1fd63e4346b141881aed086effd (diff) |
driver core: Fix device link device name collision
The device link device's name was of the form:
<supplier-dev-name>--<consumer-dev-name>
This can cause name collision as reported here [1] as device names are
not globally unique. Since device names have to be unique within the
bus/class, add the bus/class name as a prefix to the device names used to
construct the device link device name.
So the devuce link device's name will be of the form:
<supplier-bus-name>:<supplier-dev-name>--<consumer-bus-name>:<consumer-dev-name>
[1] - https://lore.kernel.org/lkml/[email protected]/
Fixes: 287905e68dd2 ("driver core: Expose device link details in sysfs")
Cc: [email protected]
Reported-by: Michael Walle <[email protected]>
Tested-by: Michael Walle <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions