From ok@artecdesign.ee Tue Aug 2 06:52:10 2005 Date: Tue, 2 Aug 2005 16:44:31 +0300 (EEST) From: Olav Kongas To: Greg KH Subject: USB: Fix setup packet initialization in isp116x-hcd Message-ID: When recently addressing remarks by Alexey Dobriyan about the isp116x-hcd, I introduced a bug in the driver. Please apply the attached patch to fix it. Signed-off-by: Olav Kongas Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/isp116x-hcd.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/usb/host/isp116x-hcd.c 2005-08-02 13:41:29.000000000 -0700 +++ gregkh-2.6/drivers/usb/host/isp116x-hcd.c 2005-08-04 17:35:20.000000000 -0700 @@ -229,9 +229,11 @@ struct isp116x_ep *ep; struct urb *urb; struct ptd *ptd; - u16 toggle = 0, dir = PTD_DIR_SETUP, len; + u16 len; for (ep = isp116x->atl_active; ep; ep = ep->active) { + u16 toggle = 0, dir = PTD_DIR_SETUP; + BUG_ON(list_empty(&ep->hep->urb_list)); urb = container_of(ep->hep->urb_list.next, struct urb, urb_list);