[patch] atm: forever loop loading ambassador firmware

Subsystems: atm, the rest

STALE5013d

3 messages, 3 authors, 2012-11-28 · open the first message on its own page

[patch] atm: forever loop loading ambassador firmware

From: Dan Carpenter <hidden>
Date: 2012-11-27 17:31:56

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

Signed-off-by: Dan Carpenter <redacted>
---
Spotted in code reading.  Untested.
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
index 89b30f3..ff7bb8a 100644
--- a/drivers/atm/ambassador.c
+++ b/drivers/atm/ambassador.c
@@ -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)

Re: [patch] atm: forever loop loading ambassador firmware

From: chas williams - CONTRACTOR <hidden>
Date: 2012-11-28 15:41:59

On Tue, 27 Nov 2012 20:29:35 +0300
Dan Carpenter [off-list ref] wrote:
There was a forever loop introduced here when we converted this to
request_firmware() back in 2008.

Signed-off-by: Dan Carpenter <redacted>
This certainly does seem to be the case.

Acked-by: Chas Williams <redacted>
quoted hunk
---
Spotted in code reading.  Untested.
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
index 89b30f3..ff7bb8a 100644
--- a/drivers/atm/ambassador.c
+++ b/drivers/atm/ambassador.c
@@ -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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [patch] atm: forever loop loading ambassador firmware

From: David Miller <davem@davemloft.net>
Date: 2012-11-28 16:38:57

From: chas williams - CONTRACTOR <redacted>
Date: Wed, 28 Nov 2012 10:40:44 -0500
On Tue, 27 Nov 2012 20:29:35 +0300
Dan Carpenter [off-list ref] wrote:
quoted
There was a forever loop introduced here when we converted this to
request_firmware() back in 2008.

Signed-off-by: Dan Carpenter <redacted>
This certainly does seem to be the case.

Acked-by: Chas Williams <redacted>
Applied, thanks everyone.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help