From: roel kluin Date: Sat, 1 Aug 2009 20:20:13 +0000 (+0000) Subject: s6gmac: Read buffer overflow X-Git-Tag: v2.6.31-rc6~68^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54706d99051582993037be5a076aa543fd7f1c38;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed