diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-02-11 13:37:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-11 21:14:47 -0800 |
commit | fae21a4da5767db0c0b481360780d6e8c7f906ae (patch) | |
tree | 3bac8bcca7842bc4fc7d7cc868a50f94cc164464 /drivers/net/benet | |
parent | 60964dd7087fa252c16022a7590e385294c5472a (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/net/benet')
-rw-r--r-- | drivers/net/benet/be_main.c | 4 |
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, 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 |