summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-11-27 08:29:35 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-28 17:38:11 +0100
commitfcdc90b025e69a38f9ec2742df099c7ddaa331fe (patch)
tree1c8dbacc57ac44374760bb57c6f640965561f4af
parentMerge branch 'master' of git://1984.lsi.us.es/nf (diff)
downloadlinux-fcdc90b025e69a38f9ec2742df099c7ddaa331fe.tar.xz
linux-fcdc90b025e69a38f9ec2742df099c7ddaa331fe.zip
atm: forever loop loading ambassador firmware
There was a forever loop introduced here when we converted this to request_firmware() back in 2008. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/atm/ambassador.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
index 89b30f32ba68..ff7bb8a42ed6 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)