aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@emulex.com>2011-02-11 08:37:42 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-12 00:14:47 -0500
commitfae21a4da5767db0c0b481360780d6e8c7f906ae (patch)
tree3bac8bcca7842bc4fc7d7cc868a50f94cc164464 /drivers
parent60964dd7087fa252c16022a7590e385294c5472a (diff)
be2net: pass proper hdr_size while flashing redboot.
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/benet/be_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 8975340614b4..824d42002787 100644
--- 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,
2461 continue; 2461 continue;
2462 if ((pflashcomp[i].optype == IMG_TYPE_REDBOOT) && 2462 if ((pflashcomp[i].optype == IMG_TYPE_REDBOOT) &&
2463 (!be_flash_redboot(adapter, fw->data, 2463 (!be_flash_redboot(adapter, fw->data,
2464 pflashcomp[i].offset, pflashcomp[i].size, 2464 pflashcomp[i].offset, pflashcomp[i].size, filehdr_size +
2465 filehdr_size))) 2465 (num_of_images * sizeof(struct image_hdr)))))
2466 continue; 2466 continue;
2467 p = fw->data; 2467 p = fw->data;
2468 p += filehdr_size + pflashcomp[i].offset 2468 p += filehdr_size + pflashcomp[i].offset