diff options
author | Michael Chan <mchan@broadcom.com> | 2006-05-22 19:38:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-05-22 19:38:38 -0400 |
commit | bae25761c92c5eec781b6ea72bbe7e98fc8382a0 (patch) | |
tree | b4a12d158a425a695272761f02d2c0eb87838ee8 /drivers | |
parent | 463d305bc51b8f5d0750a17ec0c9caf5181ec6d4 (diff) |
[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 <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bnx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 5ca99e26660..509f104ec3d 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -3061,7 +3061,7 @@ bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf, | |||
3061 | } | 3061 | } |
3062 | 3062 | ||
3063 | /* Loop to write the new data from data_start to data_end */ | 3063 | /* Loop to write the new data from data_start to data_end */ |
3064 | for (addr = data_start; addr < data_end; addr += 4, i++) { | 3064 | for (addr = data_start; addr < data_end; addr += 4, i += 4) { |
3065 | if ((addr == page_end - 4) || | 3065 | if ((addr == page_end - 4) || |
3066 | ((bp->flash_info->buffered) && | 3066 | ((bp->flash_info->buffered) && |
3067 | (addr == data_end - 4))) { | 3067 | (addr == data_end - 4))) { |