Skip to content
Snippets Groups Projects
Commit 35016dd7 authored by Roel Kluin's avatar Roel Kluin Committed by David Woodhouse
Browse files

mtd: ensure index is positive


The index is signed, make sure it is not negative
when we read the array element.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 61c3506c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment