mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
slram: Read buffer overflow
map[count] is checked before count < SLRAM_MAX_DEVICES_PARAMS 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>
This commit is contained in:
parent
ad4fbc7921
commit
269c0ee663
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ static int init_slram(void)
|
||||||
#else
|
#else
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
for (count = 0; (map[count]) && (count < SLRAM_MAX_DEVICES_PARAMS);
|
for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
|
||||||
count++) {
|
count++) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue