diff options
-rw-r--r-- | drivers/usb/core/hub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index f4ef7c25096e..08f0c22fa917 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -403,9 +403,10 @@ static void hub_tt_kevent (struct work_struct *work) | |||
403 | struct usb_hub *hub = | 403 | struct usb_hub *hub = |
404 | container_of(work, struct usb_hub, tt.kevent); | 404 | container_of(work, struct usb_hub, tt.kevent); |
405 | unsigned long flags; | 405 | unsigned long flags; |
406 | int limit = 100; | ||
406 | 407 | ||
407 | spin_lock_irqsave (&hub->tt.lock, flags); | 408 | spin_lock_irqsave (&hub->tt.lock, flags); |
408 | while (!list_empty (&hub->tt.clear_list)) { | 409 | while (--limit && !list_empty (&hub->tt.clear_list)) { |
409 | struct list_head *temp; | 410 | struct list_head *temp; |
410 | struct usb_tt_clear *clear; | 411 | struct usb_tt_clear *clear; |
411 | struct usb_device *hdev = hub->hdev; | 412 | struct usb_device *hdev = hub->hdev; |