From cd593cd871b09dc19599e2db5bc87d1df3cc7b6b Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Tue, 17 Feb 2026 10:26:04 -0700 Subject: [PATCH] linux: Handle ENOENT from claim_interface --- src/platform/linux_usbfs/device.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/linux_usbfs/device.rs b/src/platform/linux_usbfs/device.rs index 6a48714..ff82355 100644 --- a/src/platform/linux_usbfs/device.rs +++ b/src/platform/linux_usbfs/device.rs @@ -410,7 +410,9 @@ impl LinuxDevice { ) -> Result, Error> { result.map_err(|e| { match e { - Errno::INVAL => Error::new_os(ErrorKind::NotFound, "interface not found", e), + Errno::INVAL | Errno::NOENT => { + Error::new_os(ErrorKind::NotFound, "interface not found", e) + } Errno::BUSY => Error::new_os(ErrorKind::Busy, "interface is busy", e), Errno::NODEV => Error::new_os(ErrorKind::Disconnected, "device disconnected", e), _ => Error::new_os(ErrorKind::Other, "failed to claim interface", e),