marius b92c02c4c7 Refine the previous change to only call bus_dmamap_sync() in case of
an URQ_REQUEST when DMA segments are passed to usbd_start_transfer();
when the request doesn't include the optional data buffer the size of
the transfer (xfer->length) is 0, in which case usbd_transfer() won't
create a DMA map but call usbd_start_transfer() with no DMA segments.
With the previous change this could result in the bus_dmamap_sync()
implementation dereferencing the NULL-pointer passed as the DMA map
argument.
While at it fix what appears to be a typo in usbd_start_transfer();
in order to determine wheter usbd_start_transfer() was called with
DMA segments check whether the number of segments is > 0 rather than
the pointer to them being > 0.

OK'ed by:	imp
2006-11-27 18:39:02 +00:00
..
2006-11-03 04:57:23 +00:00
2006-11-09 02:19:30 +00:00
2006-10-19 05:25:29 +00:00
2006-06-12 03:28:42 +00:00
2006-06-11 22:25:01 +00:00
2006-06-12 04:30:42 +00:00
2006-09-24 00:26:33 +00:00
2006-08-12 01:19:37 +00:00
2006-09-11 20:52:41 +00:00
2006-11-22 06:41:37 +00:00
2006-11-02 03:23:01 +00:00
2006-11-01 18:59:06 +00:00
2006-08-31 11:15:18 +00:00
2006-09-01 20:14:06 +00:00
2006-07-14 04:36:57 +00:00
2006-11-27 04:47:27 +00:00
2006-05-20 21:08:09 +00:00
2006-11-06 17:43:10 +00:00
2006-08-12 09:06:55 +00:00
2006-08-02 04:54:14 +00:00
2006-11-21 05:41:11 +00:00
2006-05-16 15:23:27 +00:00
2006-09-15 11:01:23 +00:00
2006-11-27 06:16:36 +00:00
2006-07-14 04:35:59 +00:00
2006-09-15 11:01:23 +00:00