cherry-pick !5667
The existing check incorrectly compares the directory path only. This allows unintended GPUs to be added when events occur for them, such as with "udevadm trigger".
Update the check to use the full path.
The existing check incorrectly compares the directory path only. This allows unintended GPUs to be added when events occur for them, such as with "udevadm trigger".
Update the check to use the full path.