diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-18 13:56:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-22 08:09:04 +0200 |
commit | d113857d2b7d696f69fc41299d5f5069c3c4d59c (patch) | |
tree | 6faee7bd538965ebd2d436e71b6100383db4c514 /include/usb/composite.h | |
parent | b670c7566e06e035ce16bce026e2a63fc9e61e12 (diff) | |
download | barebox-d113857d2b7d696f69fc41299d5f5069c3c4d59c.tar.gz barebox-d113857d2b7d696f69fc41299d5f5069c3c4d59c.tar.xz |
USB: gadget: composite: Break out of potential endless loop
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/composite.h')
-rw-r--r-- | include/usb/composite.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/composite.h b/include/usb/composite.h index 5b92c9263d..d24454c748 100644 --- a/include/usb/composite.h +++ b/include/usb/composite.h @@ -392,6 +392,8 @@ struct usb_composite_dev { /* protects deactivations and delayed_status counts*/ spinlock_t lock; + + int in_reset_config; }; extern int usb_string_id(struct usb_composite_dev *c); |