diff options
Diffstat (limited to 'drivers/usb/image/microtek.c')
-rw-r--r-- | drivers/usb/image/microtek.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index 2a0e18a48748..b2bafc37c414 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c | |||
@@ -513,7 +513,7 @@ static void mts_do_sg (struct urb* transfer, struct pt_regs *regs) | |||
513 | mts_transfer_cleanup(transfer); | 513 | mts_transfer_cleanup(transfer); |
514 | } | 514 | } |
515 | 515 | ||
516 | sg = context->srb->buffer; | 516 | sg = context->srb->request_buffer; |
517 | context->fragment++; | 517 | context->fragment++; |
518 | mts_int_submit_urb(transfer, | 518 | mts_int_submit_urb(transfer, |
519 | context->data_pipe, | 519 | context->data_pipe, |
@@ -549,19 +549,19 @@ mts_build_transfer_context( Scsi_Cmnd *srb, struct mts_desc* desc ) | |||
549 | desc->context.fragment = 0; | 549 | desc->context.fragment = 0; |
550 | 550 | ||
551 | if (!srb->use_sg) { | 551 | if (!srb->use_sg) { |
552 | if ( !srb->bufflen ){ | 552 | if ( !srb->request_bufflen ){ |
553 | desc->context.data = NULL; | 553 | desc->context.data = NULL; |
554 | desc->context.data_length = 0; | 554 | desc->context.data_length = 0; |
555 | return; | 555 | return; |
556 | } else { | 556 | } else { |
557 | desc->context.data = srb->buffer; | 557 | desc->context.data = srb->request_buffer; |
558 | desc->context.data_length = srb->bufflen; | 558 | desc->context.data_length = srb->request_bufflen; |
559 | MTS_DEBUG("length = %d or %d\n", | 559 | MTS_DEBUG("length = %d or %d\n", |
560 | srb->request_bufflen, srb->bufflen); | 560 | srb->request_bufflen, srb->bufflen); |
561 | } | 561 | } |
562 | } else { | 562 | } else { |
563 | MTS_DEBUG("Using scatter/gather\n"); | 563 | MTS_DEBUG("Using scatter/gather\n"); |
564 | sg = srb->buffer; | 564 | sg = srb->request_buffer; |
565 | desc->context.data = page_address(sg[0].page) + sg[0].offset; | 565 | desc->context.data = page_address(sg[0].page) + sg[0].offset; |
566 | desc->context.data_length = sg[0].length; | 566 | desc->context.data_length = sg[0].length; |
567 | } | 567 | } |