diff options
author | iedowse <iedowse@FreeBSD.org> | 2006-05-28 23:37:04 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2006-05-28 23:37:04 +0000 |
commit | 56e4b3fcb68cec9a5592c6c3908708485c434fe8 (patch) | |
tree | c556a8ba6d9247b11785233a6bdb46b86d9e5e5b /sys/kern/subr_disk.c | |
parent | 92e37b9fef59c4c925db5a36efd9dd2edcf55c79 (diff) | |
download | FreeBSD-src-56e4b3fcb68cec9a5592c6c3908708485c434fe8.zip FreeBSD-src-56e4b3fcb68cec9a5592c6c3908708485c434fe8.tar.gz |
If a zero-length bulk or interrupt transfer is requested then assume
USBD_FORCE_SHORT_XFER to ensure that we actually build and execute
a transfer. This means that the various alloc_sqtd_chain functions
will always construct a transfer, so it is safe to modify the
allocated descriptors on return. Previously there were cases where
a zero length transfer would cause a NULL dereference.
Reported by: bp
Diffstat (limited to 'sys/kern/subr_disk.c')
0 files changed, 0 insertions, 0 deletions