]> git.sur5r.net Git - u-boot/commit
mips: micronas/vct: check array bounds before access
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 22:43:43 +0000 (23:43 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 21 Mar 2018 22:23:13 +0000 (23:23 +0100)
commitdbf4b7669c09f307124af3a479e0ca5b5361740c
treeaf207dc8dc6fe00462132f6b6c47a23f5af39216
parentd3611c991ef9cfeae14c8b29793abdecbdf20abb
mips: micronas/vct: check array bounds before access

If we check an index against array bounds, we should do so before
accessing the array and not afterwards.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
board/micronas/vct/scc.c