From 11d591058e3f105b0e90c23bbf58b18de691e690 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sat, 7 Nov 2009 10:43:59 +0000 Subject: Update documentation about early completion caveats --- libusb/io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libusb/io.c') diff --git a/libusb/io.c b/libusb/io.c index b58eafa..65c2cf4 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -323,6 +323,10 @@ if (r == 0 && actual_length == sizeof(data)) { * Freeing the transfer after it has been cancelled but before cancellation * has completed will result in undefined behaviour. * + * When a transfer is cancelled, some of the data may have been transferred. + * libusb will communicate this to you in the transfer callback. Do not assume + * that no data was transferred. + * * \section bulk_overflows Overflows on device-to-host bulk/interrupt endpoints * * If your device does not have predictable transfer sizes (or it misbehaves), -- cgit v1.2.1