Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289469
b: refs/heads/master
c: 4898e07
h: refs/heads/master
i:
  289467: 1d10bc1
v: v3
  • Loading branch information
jwboyer@redhat.com authored and Greg Kroah-Hartman committed Feb 24, 2012
1 parent 5d455ec commit eedba60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28c56ea1431421dec51b7b229369e991481453df
refs/heads/master: 4898e07174b79013afd2b422ef6c4336ef8e6783
8 changes: 7 additions & 1 deletion trunk/drivers/usb/storage/realtek_cr.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,17 +507,23 @@ static int __do_config_autodelink(struct us_data *us, u8 *data, u16 len)
{
int retval;
u8 cmnd[12] = {0};
u8 *buf;

US_DEBUGP("%s, addr = 0xfe47, len = %d\n", __FUNCTION__, len);

buf = kmemdup(data, len, GFP_NOIO);
if (!buf)
return USB_STOR_TRANSPORT_ERROR;

cmnd[0] = 0xF0;
cmnd[1] = 0x0E;
cmnd[2] = 0xfe;
cmnd[3] = 0x47;
cmnd[4] = (u8)(len >> 8);
cmnd[5] = (u8)len;

retval = rts51x_bulk_transport_special(us, 0, cmnd, 12, data, len, DMA_TO_DEVICE, NULL);
retval = rts51x_bulk_transport_special(us, 0, cmnd, 12, buf, len, DMA_TO_DEVICE, NULL);
kfree(buf);
if (retval != USB_STOR_TRANSPORT_GOOD) {
return -EIO;
}
Expand Down

0 comments on commit eedba60

Please sign in to comment.