]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit985dc7ccee169d11c8322c43593f277c4602b0ac
treeb945b7fb52aada745b386f12392e86f997c6814d
parentd452e1fbd6c335ddcf0c807dff701b3ae8bc7b96
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