]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TG3]: Fix bug in nvram write
authorMichael Chan <mchan@broadcom.com>
Sun, 30 Apr 2006 02:00:24 +0000 (19:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Apr 2006 02:00:24 +0000 (19:00 -0700)
commitf6d9a2565bc754043f43b8f51b19f77ee0269411
tree9d99366776a3191b363be38f8e692df405904501
parent8e7a22e3eb49042c048f24bab40cf5cf8915487d
[TG3]: Fix bug in nvram write

Fix bug in nvram write function. If the starting nvram address offset
happens to be the last dword of the page, the NVRAM_CMD_LAST bit will
not get set in the existing code. This patch fixes the bug by changing
the "else if" to "if" so that the last dword condition always gets
checked.

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