commit | fd6d88f55baee946d2a1bd16e7344486cf140c94 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Tue Jul 30 23:49:00 2019 +0200 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Wed Sep 04 11:37:19 2019 -0500 |
tree | 0a9981ad65b2728f969f47573a82a7a2ca683720 | |
parent | a37c082248220a30caacc7804575cae6f885506b [diff] |
test: dm_mdio: avoid out of bounds access SANDBOX_PHY_REG_CNT is not an allowable index for the array u16 reg[SANDBOX_PHY_REG_CNT]. Identified by cppcheck. Fixes: b47edf8069cc ("test: dm_mdio: add a 2nd register to the emulated PHY") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>