1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-13 14:39:43 +03:00

Merge pull request #62 from linux-usb-gadgets/uvc-fix

uvc: fix return check on scandir
This commit is contained in:
Michael Grzeschik 2021-10-28 10:25:34 +02:00 committed by GitHub
commit ed1fb6d12c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,8 +174,8 @@ int init_frames(struct usbg_f_uvc *uvc, int j)
return ret;
}
nmb = scandir(fpath, &dent, frame_select, frame_sort);
if (nmb < 0) {
ret = scandir(fpath, &dent, frame_select, frame_sort);
if (ret < 0) {
ret = usbg_translate_error(errno);
return ret;
}