Skip to content

Commit

Permalink
Merge pull request #2701 from fenugrec/libusb1_array_oob
Browse files Browse the repository at this point in the history
drivers/libusb1.c: fix wrong return value of nut_libusb_get_interrupt()
  • Loading branch information
jimklimov authored Nov 30, 2024
2 parents bbfa337 + 68085e6 commit f4bbe62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/libusb1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ static int nut_libusb_get_interrupt(
) {
return -1;
}
ret = (usb_ctrl_charbufsize)bufsize;
ret = (usb_ctrl_charbufsize)tmpbufsize;
}

return nut_libusb_strerror(ret, __func__);
Expand Down

0 comments on commit f4bbe62

Please sign in to comment.