Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133543
b: refs/heads/master
c: 8c209e6
h: refs/heads/master
i:
  133541: b23e16d
  133539: a18e0b7
  133535: 65e6149
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Mar 24, 2009
1 parent 108d5f5 commit d62f66d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: 16e2e5f634f86ccda18366967c4e592eb61bc9cc
refs/heads/master: 8c209e6782ca0e3046803fc04a5ac01c8c10437a
2 changes: 1 addition & 1 deletion trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ static void ftdi_process_read(struct work_struct *work)
priv->prev_status = new_status;
}

length = min(PKTSZ, urb->actual_length-packet_offset)-2;
length = min_t(u32, PKTSZ, urb->actual_length-packet_offset)-2;
if (length < 0) {
dev_err(&port->dev, "%s - bad packet length: %d\n",
__func__, length+2);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ struct urb {
void *transfer_buffer; /* (in) associated data buffer */
dma_addr_t transfer_dma; /* (in) dma addr for transfer_buffer */
u32 transfer_buffer_length; /* (in) data buffer length */
int actual_length; /* (return) actual transfer length */
u32 actual_length; /* (return) actual transfer length */
unsigned char *setup_packet; /* (in) setup packet (control only) */
dma_addr_t setup_dma; /* (in) dma addr for setup_packet */
int start_frame; /* (modify) start frame (ISO) */
Expand Down

0 comments on commit d62f66d

Please sign in to comment.