]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitaf2c6a4aaa2253f1e29df8fb59a3d92174d30a33
tree5eb583eb426b70c342d7a5a0577b44564de70538
parent25f484a62e41be8020b9a31bf50a792baa58d2d4
[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