projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60964dd
)
be2net: pass proper hdr_size while flashing redboot.
author
Ajit Khaparde
<ajit.khaparde@emulex.com>
Fri, 11 Feb 2011 13:37:42 +0000
(13:37 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 12 Feb 2011 05:14:47 +0000
(21:14 -0800)
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/benet/be_main.c
b/drivers/net/benet/be_main.c
index
8975340
..
824d420
100644
(file)
--- a/
drivers/net/benet/be_main.c
+++ b/
drivers/net/benet/be_main.c
@@
-2461,8
+2461,8
@@
static int be_flash_data(struct be_adapter *adapter,
continue;
if ((pflashcomp[i].optype == IMG_TYPE_REDBOOT) &&
(!be_flash_redboot(adapter, fw->data,
- pflashcomp[i].offset, pflashcomp[i].size,
-
filehdr_size
)))
+ pflashcomp[i].offset, pflashcomp[i].size, filehdr_size +
+
(num_of_images * sizeof(struct image_hdr))
)))
continue;
p = fw->data;
p += filehdr_size + pflashcomp[i].offset