8139too: fix buffer overrun in rtl8139_init_board
Subsystems (2)
PATCH 1/1 8139too: fix buffer overrun in rtl8139_init_board
Fix rtl_chip_info buffer overrun when we can't identify the chip. (i = ARRAY_SIZE (rtl_chip_info) in this case)
Signed-off-by Denis Kirjanov <[email protected]>
---drivers/net/8139too.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/8139too.c +1 -0
@@ -860,6 +860,7 @@ retry: }/* if unknown chip, assume array element #0, original RTL-8139 in this case */ + i =0 ;dev_dbg (&pdev->dev,"unknown chip version, assuming RTL-8139\n" );dev_dbg (&pdev->dev,"TxConfig = 0x%x\n" ,RTL_R32 (TxConfig)); tp->chipset =0 ;
From: Denis Kirjanov <[email protected]>
Date: Sat, 5 Jun 2010 09:45:49 +0000
Quoted 4 lines
Fix
rtl_chip_infobuffer overrun when we can't identify the chip. (i =ARRAY_SIZE(rtl_chip_info) in this case)Signed-off-by Denis Kirjanov <[email protected]>
Applied, thanks!