summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-09-22 15:42:53 +0000
committerguenther <guenther@openbsd.org>2013-09-22 15:42:53 +0000
commit96c276e94efe82b7271d5c9657b80c038b4a2b7b (patch)
treea9cb99ed79409a14b5f90777ff7b20a9aa57b799 /sys/dev/usb/usbdi.c
parentmerge ldns 1.6.16 (diff)
downloadwireguard-openbsd-96c276e94efe82b7271d5c9657b80c038b4a2b7b.tar.xz
wireguard-openbsd-96c276e94efe82b7271d5c9657b80c038b4a2b7b.zip
On return, uio_offset needs to be set to the offset of the first entry
not returned instead of the offset after that one. udf_uiodir() returns -1 when there isn't enough space for the next entry, so just break from the loop and return 0 in that case. Remove the bogus printf there now that this is handled correctly. problem reported by espie@
Diffstat (limited to 'sys/dev/usb/usbdi.c')
0 files changed, 0 insertions, 0 deletions