From cc17ee7d9ba97a6190829baee4d211eb5686cc7c Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Tue, 11 Apr 2006 05:01:44 +0200 Subject: [PATCH] --- yaml --- r: 25597 b: refs/heads/master c: 6dde432553551ae036aae12c2b940677d36c9a5b h: refs/heads/master i: 25595: b5549f05b7aaab726f85c70fe8d0cfaf362d9b41 v: v3 --- [refs] | 2 +- trunk/drivers/usb/serial/option.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 1719e93f9d27..93167cc34106 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 397eeab321e87d8c1ef928b58f256513e6f481dc +refs/heads/master: 6dde432553551ae036aae12c2b940677d36c9a5b diff --git a/trunk/drivers/usb/serial/option.c b/trunk/drivers/usb/serial/option.c index 495db5755df9..5cf2b80add7a 100644 --- a/trunk/drivers/usb/serial/option.c +++ b/trunk/drivers/usb/serial/option.c @@ -28,6 +28,7 @@ 2005-09-10 v0.4.3 added HUAWEI E600 card and Audiovox AirCard 2005-09-20 v0.4.4 increased recv buffer size: the card sometimes wants to send >2000 bytes. + 2006-04-10 v0.4.2 fixed two array overrun errors :-/ Work sponsored by: Sigos GmbH, Germany @@ -582,14 +583,14 @@ static void option_setup_urbs(struct usb_serial *serial) portdata = usb_get_serial_port_data(port); /* Do indat endpoints first */ - for (j = 0; j <= N_IN_URB; ++j) { + for (j = 0; j < N_IN_URB; ++j) { portdata->in_urbs[j] = option_setup_urb (serial, port->bulk_in_endpointAddress, USB_DIR_IN, port, portdata->in_buffer[j], IN_BUFLEN, option_indat_callback); } /* outdat endpoints */ - for (j = 0; j <= N_OUT_URB; ++j) { + for (j = 0; j < N_OUT_URB; ++j) { portdata->out_urbs[j] = option_setup_urb (serial, port->bulk_out_endpointAddress, USB_DIR_OUT, port, portdata->out_buffer[j], OUT_BUFLEN, option_outdat_callback);