Skip to contentSkip to conversation

atm: forever loop loading ambassador firmware

PATCH Applied Dan Carpenter 3 participants 3 messages Nov 27, 2012 – Nov 28, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm: forever loop loading ambassador firmware

There was a forever loop introduced here when we converted this to request_firmware() back in 2008.

---
Spotted in code reading. Untested.

drivers/atm/ambassador.c +1 -0
index 89b30f3..ff7bb8a 100644
@@ -1961,6 +1961,7 @@ static int __devinit ucode_init (loader_block * lb, amb_dev * dev) {
     res = loader_verify(lb, dev, rec);
     if (res)
       break;
+    rec = ihex_next_binrec(rec);
   }
   release_firmware(fw);
   if (!res)
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Tue, 27 Nov 2012 20:29:35 +0300 Dan Carpenter <[email protected]>…

There was a forever loop introduced here when we converted this to request_firmware() back in 2008.

This certainly does seem to be the case.

Quoted 20 lines

---
Spotted in code reading. Untested.

drivers/atm/ambassador.c +1 -1
index 89b30f3..ff7bb8a 100644
@@ -1961,6 +1961,7 @@ static int __devinit ucode_init (loader_block * lb, amb_dev * dev) {
     res = loader_verify(lb, dev, rec);
     if (res)
       break;
+    rec = ihex_next_binrec(rec);
   }
   release_firmware(fw);
   if (!res)
--

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Applied
#2 lore raw

From: chas williams - CONTRACTOR <[email protected]>
Date: Wed, 28 Nov 2012 10:40:44 -0500

Quoted 11 lines
Quoted 4 lines · On Tue, 27 Nov 2012 20:29:35 +0300 Dan Carpenter <[email protected]>…

There was a forever loop introduced here when we converted this to request_firmware() back in 2008.

This certainly does seem to be the case.

Applied, thanks everyone.