aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet/be_main.c')
-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