module_param: make bool parameters really bool (drivers & misc)
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / uhci-q.c
index f6ca80ee4cec0ddbe9d44159bb1862b3a9c19843..d2c6f5ac4626af6c0297ab1348b9a14b18f77605 100644 (file)
@@ -943,7 +943,7 @@ static int uhci_submit_common(struct uhci_hcd *uhci, struct urb *urb,
        if (usb_pipein(urb->pipe))
                status |= TD_CTRL_SPD;
 
-       i = urb->num_sgs;
+       i = urb->num_mapped_sgs;
        if (len > 0 && i > 0) {
                sg = urb->sg;
                data = sg_dma_address(sg);