summaryrefslogtreecommitdiffstats
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-27 10:35:45 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-27 10:35:45 +0000
commit320c3c2ca9839e17db222f25da3ef00c42bcde01 (patch)
tree9b26a75cef1a5345c72475c7e05e3b239ef85163 /firmware/usb.c
parentd3ad36f6e7c7ec3586f5e2c7c880593beb3f9fc5 (diff)
downloadrockbox-320c3c2ca9839e17db222f25da3ef00c42bcde01.tar.gz
rockbox-320c3c2ca9839e17db222f25da3ef00c42bcde01.tar.bz2
rockbox-320c3c2ca9839e17db222f25da3ef00c42bcde01.zip
usb: add forgotten break in usb switch, this could lead to unwanted code being execute like USB_QUIT to be sent on hotswap !
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30843 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 4a6ab2231c..4e71c06119 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -506,6 +506,7 @@ static void usb_thread(void)
case USB_REENABLE:
#endif
usb_handle_hotswap(ev.id);
+ break;
#endif
/* FIREWIRE */
@@ -738,7 +739,6 @@ void usb_close(void)
tick_remove_task(usb_tick);
#endif
usb_monitor_enabled = false;
-
queue_post(&usb_queue, USB_QUIT, 0);
thread_wait(thread);
}