]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[TG3]: Fix array overrun in tg3_read_partno().
authorMichael Chan <mchan@broadcom.com>
Sun, 19 Nov 2006 23:12:55 +0000 (00:12 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sun, 19 Nov 2006 23:12:55 +0000 (00:12 +0100)
commit9d41b6ad6669529146a588fae30af28ab4443450
treef8c29f558e31effad37e061ebe01ac5b59ca5f26
parentde6c0ccfa9ab24a9104c8791030e8ebecb1e2c5a
[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: Adrian Bunk <bunk@stusta.de>
drivers/net/tg3.c