mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +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
|
||||
int count;
|
||||
|
||||
for (count = 0; (map[count]) && (count < SLRAM_MAX_DEVICES_PARAMS);
|
||||
for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
|
||||
count++) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue