bnx2: Fix bug in bnx2_nvram_write()
Subsystems (2)
PATCH 1/2 bnx2: Fix bug in bnx2_nvram_write()
Fix a bug in bnx2_nvram_write() caused by a counter variable not correctly incremented by 4.
Signed-off-by Michael Chan <[email protected]>
drivers/net/bnx2.c +1 -1
@@ -3061,7 +3061,7 @@ bnx2_nvram_write(struct bnx2 *bp, u32 of }/* Loop to write the new data from data_start to data_end */ -for (addr = data_start; addr < data_end; addr +=4 , i++) { +for (addr = data_start; addr < data_end; addr +=4 , i +=4 ) {if ((addr == page_end -4 ) || ((bp->flash_info->buffered) && (addr == data_end -4 ))) {
Quoted 4 lines · Michael Chan
Fix a bug in
bnx2_nvram_write()caused by a counter variable not correctly incremented by 4.Signed-off-by Michael Chan <[email protected]>
ACK patches 1-2