]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitcc6f6589c175f321e2ace9a299d9d5ec1e7c30ba
tree7ff84d869b78f73b1ee22f9d9deff44899661263
parentd0f02befda799a96eb5096dc77669eafaeafc2fe
[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