Skip to contentSkip to conversation

be2net: pass proper hdr_size while flashing redboot.

PATCH In review Ajit Khaparde 1 participant 1 message Feb 11, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 11/15 be2net: pass proper hdr_size while flashing redboot.

---
 drivers/net/benet/be_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/benet/be_main.c +2 -2
index 8975340..824d420 100644
@@ -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
Signature · 1 line
1.7.1