Skip to content
Commit fd6d88f5 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Joe Hershberger
Browse files

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: b47edf80 ("test: dm_mdio: add a 2nd register to the emulated PHY")
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent a37c0822
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment