ni / usb3vision

Driver for USB3 Vision(TM) class devices
GNU General Public License v2.0
67 stars 31 forks source link

Scatter/gather list - calculate_sglist_entries issue #1

Closed mretallack closed 6 years ago

mretallack commented 7 years ago

Hi,

While trying out this kernel module for usb3vision, if found an issue with the calculate_sglist_entries function.

The bytes_to_transfer can become zero if pglist_bytes_remaining is non-zero but not enough data is available.

I have attached the patch that fixes the issue.

fix-sglist-leftovers.txt

katieensign commented 7 years ago

Thanks for debugging this and for providing a patch -- I have added this issue to our schedule to address before the next release.

katieensign commented 6 years ago

Thanks again for your very helpful feedback/patch. This has been incorporated in the newest release (1.3.0), and I added more details about it in the release notes.