Commit 6a4f58ed authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix to get usb-storage code to work again.

Thanks to Matt Dharm and David Brownell for tracking this bug down.
parent 2529c253
...@@ -319,7 +319,7 @@ int usb_sg_init ( ...@@ -319,7 +319,7 @@ int usb_sg_init (
/* not all host controllers use DMA (like the mainstream pci ones); /* not all host controllers use DMA (like the mainstream pci ones);
* they can use PIO (sl811) or be software over another transport. * they can use PIO (sl811) or be software over another transport.
*/ */
dma = (dev->dev.dma_mask == 0); dma = (dev->dev.dma_mask != 0);
if (dma) if (dma)
io->entries = usb_buffer_map_sg (dev, pipe, sg, nents); io->entries = usb_buffer_map_sg (dev, pipe, sg, nents);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment