[BNX2]: Fix bug in bnx2_nvram_write().
authorMichael Chan <mchan@broadcom.com>
Tue, 9 Jan 2007 03:56:13 +0000 (19:56 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 9 Jan 2007 08:30:04 +0000 (00:30 -0800)
commite6be763f63420c334710a5a0818e6bfcf5d593f8
tree7ff84d869b78f73b1ee22f9d9deff44899661263
parent253c8b75546c5f21d5321d691df92c1e84d9b0fb
[BNX2]: Fix bug in bnx2_nvram_write().

The bug was a bogus pointer being passed to kfree().  The pointer was
incremented in the write loop and then passed to kfree().

The fix is to use align_buf to save the original address.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c