8139too: fix buffer overrun in rtl8139_init_board
authorDenis Kirjanov <dkirjanov@kernel.org>
Mon, 7 Jun 2010 08:13:57 +0000 (01:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2010 08:13:57 +0000 (01:13 -0700)
commit3fd7fa4a89f0b85b9b33e922f15a2289c0fb8499
treeb945b7fb52aada745b386f12392e86f997c6814d
parent9227a46bfbac0516fb7428715a095e1bc59b872a
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 <dkirjanov@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/8139too.c