diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-08-01 22:20:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-02 21:20:40 +0200 |
commit | 54706d99051582993037be5a076aa543fd7f1c38 (patch) | |
tree | 74462b9fc52835114b8e28b72829dabc1e92342e /crypto | |
parent | tulip: Read buffer overflow (diff) | |
download | linux-54706d99051582993037be5a076aa543fd7f1c38.tar.xz linux-54706d99051582993037be5a076aa543fd7f1c38.zip |
s6gmac: Read buffer overflow
Check whether index is within bounds before testing the element.
In the last iteration i is PHY_MAX_ADDR. the condition
`!(p = pd->mii.bus->phy_map[PHY_MAX_ADDR])' is undefined and may
evaluate to false, which leads to a dereference of this invalid
phy_map in the phy_connect() below.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions