]> git.baikalelectronics.ru Git - kernel.git/commit
[TG3]: Fix array overrun in tg3_read_partno().
authorMichael Chan <mchan@broadcom.com>
Tue, 7 Nov 2006 22:57:51 +0000 (14:57 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 7 Nov 2006 23:10:16 +0000 (15:10 -0800)
commit3f5d69136bed30203641f6461729020681a5bedb
tree5eb583eb426b70c342d7a5a0577b44564de70538
parent54fc9b490adcb6d87fbc00c55598a390b231428a
[TG3]: Fix array overrun in tg3_read_partno().

Use proper upper limits for the loops and check for all error
conditions.

The problem was noticed by Adrian Bunk.

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