|
@@ -2551,7 +2551,7 @@ static unsigned int count_sg_trbs_needed(struct xhci_hcd *xhci, struct urb *urb)
|
|
struct scatterlist *sg;
|
|
struct scatterlist *sg;
|
|
|
|
|
|
sg = NULL;
|
|
sg = NULL;
|
|
- num_sgs = urb->num_sgs;
|
|
|
|
|
|
+ num_sgs = urb->num_mapped_sgs;
|
|
temp = urb->transfer_buffer_length;
|
|
temp = urb->transfer_buffer_length;
|
|
|
|
|
|
xhci_dbg(xhci, "count sg list trbs: \n");
|
|
xhci_dbg(xhci, "count sg list trbs: \n");
|
|
@@ -2735,7 +2735,7 @@ static int queue_bulk_sg_tx(struct xhci_hcd *xhci, gfp_t mem_flags,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
num_trbs = count_sg_trbs_needed(xhci, urb);
|
|
num_trbs = count_sg_trbs_needed(xhci, urb);
|
|
- num_sgs = urb->num_sgs;
|
|
|
|
|
|
+ num_sgs = urb->num_mapped_sgs;
|
|
total_packet_count = roundup(urb->transfer_buffer_length,
|
|
total_packet_count = roundup(urb->transfer_buffer_length,
|
|
usb_endpoint_maxp(&urb->ep->desc));
|
|
usb_endpoint_maxp(&urb->ep->desc));
|
|
|
|
|