~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise-proposed

« back to all changes in this revision

Viewing changes to drivers/usb/storage/realtek_cr.c

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich, Luke Yelavich, Upstream Kernel Changes
  • Date: 2012-04-04 18:49:36 UTC
  • Revision ID: package-import@ubuntu.com-20120404184936-tqu735914muv4wpg
Tags: 3.2.0-22.30
[ Luke Yelavich ]

* [Config] Update configs after rebase against Ubuntu-3.2.0-22.35

[ Upstream Kernel Changes ]

* Low-latency: Rebase against Ubuntu-3.2.0-22.35

Show diffs side-by-side

added added

removed removed

Lines of Context:
509
509
        int retval;
510
510
        u16 addr = 0xFE47;
511
511
        u8 cmnd[12] = {0};
 
512
        u8 *buf;
512
513
 
513
514
        US_DEBUGP("%s, addr = 0x%x, len = %d\n", __FUNCTION__, addr, len);
514
515
 
 
516
        buf = kmemdup(data, len, GFP_NOIO);
 
517
        if (!buf)
 
518
                return USB_STOR_TRANSPORT_ERROR;
 
519
 
515
520
        cmnd[0] = 0xF0;
516
521
        cmnd[1] = 0x0E;
517
522
        cmnd[2] = (u8)(addr >> 8);
519
524
        cmnd[4] = (u8)(len >> 8);
520
525
        cmnd[5] = (u8)len;
521
526
 
522
 
        retval = rts51x_bulk_transport_special(us, 0, cmnd, 12, data, len, DMA_TO_DEVICE, NULL);
 
527
        retval = rts51x_bulk_transport_special(us, 0, cmnd, 12, buf, len, DMA_TO_DEVICE, NULL);
 
528
        kfree(buf);
523
529
        if (retval != USB_STOR_TRANSPORT_GOOD) {
524
530
                return -EIO;
525
531
        }