commit | 35016dd7e92cf0eb5ae2e811445dd52320c348d0 | [log] [tgz] |
---|---|---|
author | Roel Kluin <roel.kluin@gmail.com> | Tue Nov 03 20:49:18 2009 +0100 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Mon Nov 30 09:50:46 2009 +0000 |
tree | b836cd329ed1fae21e323f9eee9c15c012423a62 | |
parent | 61c3506c2cabe58bcdfe438d1e57b62994db1616 [diff] |
mtd: ensure index is positive The index is signed, make sure it is not negative when we read the array element. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>