summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hcd.h
diff options
context:
space:
mode:
authorFelipe Balbi2008-06-12 09:49:47 +0200
committerGreg Kroah-Hartman2008-07-22 00:16:26 +0200
commit38f3ad5e7463d4dd490a8081a5f3f9f2dec7ecd6 (patch)
tree2dd60da46d065e4df9e34fe031d13e38bfc22dff /drivers/usb/core/hcd.h
parentUSB: ohci_hcd hang: submit vs. rmmod race (diff)
downloadkernel-qcow2-linux-38f3ad5e7463d4dd490a8081a5f3f9f2dec7ecd6.tar.gz
kernel-qcow2-linux-38f3ad5e7463d4dd490a8081a5f3f9f2dec7ecd6.tar.xz
kernel-qcow2-linux-38f3ad5e7463d4dd490a8081a5f3f9f2dec7ecd6.zip
usb: hub: add check for unsupported bus topology
We can't allow hubs on the 7th tier as they would allow devices on the 8th tier. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hcd.h')
-rw-r--r--drivers/usb/core/hcd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.h b/drivers/usb/core/hcd.h
index 50b8bb2d1212..5b0b59b0d89b 100644
--- a/drivers/usb/core/hcd.h
+++ b/drivers/usb/core/hcd.h
@@ -21,6 +21,8 @@
#include <linux/rwsem.h>
+#define MAX_TOPO_LEVEL 6
+
/* This file contains declarations of usbcore internals that are mostly
* used or exposed by Host Controller Drivers.
*/