From f80f4c485d0298a25823035f7366e1e096ddb42e Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Tue, 27 Feb 2024 11:47:56 -0800 Subject: [PATCH] [R550 driver support] add fallback logic to device.Exists(name) Signed-off-by: Tariq Ibrahim --- internal/info/proc/devices/devices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/info/proc/devices/devices.go b/internal/info/proc/devices/devices.go index e0863f97..5927c837 100644 --- a/internal/info/proc/devices/devices.go +++ b/internal/info/proc/devices/devices.go @@ -67,7 +67,7 @@ func (d devices) Count() int { // Exists checks if a Device with a given name exists or not func (d devices) Exists(name Name) bool { - _, exists := d[name] + _, exists := d.Get(name) return exists }