diff options
| author | SHENGYI HUNG <aokblast@FreeBSD.org> | 2025-06-20 21:45:27 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-06-25 12:40:02 +0000 |
| commit | 4981b8968d19f009347ee8844770e84f9b83311e (patch) | |
| tree | f3936edb754eaf877a13013ed2a2e2548c9c5d71 /lib/libusb | |
| parent | 7176e1e3b5474a209f54cfd5d567a523bce3b9f6 (diff) | |
Diffstat (limited to 'lib/libusb')
| -rw-r--r-- | lib/libusb/libusb10_hotplug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/libusb10_hotplug.c b/lib/libusb/libusb10_hotplug.c index f148e4dd43f5..369539d4512e 100644 --- a/lib/libusb/libusb10_hotplug.c +++ b/lib/libusb/libusb10_hotplug.c @@ -140,6 +140,8 @@ verify_event_validity(libusb_context *ctx) return (valid_event); return (invalid_event); } + if (errno == EBADF) + return (broken_event); return (invalid_event); } else if (ctx->usb_event_mode == usb_event_devd) { char buf[DEVCTL_MAXBUF]; |
