aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-05-22 11:48:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-05-23 02:45:50 -0400
commitd4b7d8e8024a33d9d1f916379eaee7aa945a7c48 (patch)
tree8889647694985504043a02dca80b2c9fb88afaf0 /drivers
parentdd865571d7af06ba1285c2db85083649193cceab (diff)
USB: fix ratelimit call semantics
This patch (as910) fixes a ratelimit modification so that the original error-handling path will be followed even when the log-rate limitation kicks in. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/hub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 6a6e4f8c69ba..caaa46f2dec7 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2421,10 +2421,10 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
2421 2421
2422 if (portchange & USB_PORT_STAT_C_CONNECTION) { 2422 if (portchange & USB_PORT_STAT_C_CONNECTION) {
2423 status = hub_port_debounce(hub, port1); 2423 status = hub_port_debounce(hub, port1);
2424 if (status < 0 && printk_ratelimit()) { 2424 if (status < 0) {
2425 dev_err (hub_dev, 2425 if (printk_ratelimit())
2426 "connect-debounce failed, port %d disabled\n", 2426 dev_err (hub_dev, "connect-debounce failed, "
2427 port1); 2427 "port %d disabled\n", port1);
2428 goto done; 2428 goto done;
2429 } 2429 }
2430 portstatus = status; 2430 portstatus = status;