diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-13 22:13:15 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-13 22:13:15 +0000 |
| commit | 1096cc08c03af37517a29b4e453002911a9ad82e (patch) | |
| tree | 05b448571ae658d8e259a7d4fe6de6a4a57fbc4d | |
| parent | a60463e636d62015af48ca865359e6535e691a6f (diff) | |
| download | rockbox-1096cc08c03af37517a29b4e453002911a9ad82e.zip rockbox-1096cc08c03af37517a29b4e453002911a9ad82e.tar.gz rockbox-1096cc08c03af37517a29b4e453002911a9ad82e.tar.bz2 rockbox-1096cc08c03af37517a29b4e453002911a9ad82e.tar.xz | |
usb-s3c6400: fix endpoint array traversal in interrupt handler
fix r31219
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31233 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c index 66699ba..16cabb6 100644 --- a/firmware/target/arm/usb-s3c6400x.c +++ b/firmware/target/arm/usb-s3c6400x.c @@ -166,8 +166,9 @@ static void usb_reset(void) static void handle_ep_int(int out) { static const uint8_t eps[2][3] = { /* IN */ {0, 1, 3}, /* OUT */ {0, 2, 4}}; - for (int i = 0, ep = eps[!!out][i]; i < 3; ep = eps[!!out][i]) + for (int i = 0; i < 3; i++) { + int ep = eps[!!out][i]; uint32_t epints = DEPINT(ep, out); if (!epints) continue; |