diff options
author | Greg Ungerer <gerg@linux-m68k.org> | 2017-09-05 22:57:06 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2017-11-06 08:25:20 +1000 |
commit | f55ab8f27548ff3431a6567d400c6757c49fd520 (patch) | |
tree | cc03aab39d6a5a9cda66a5ea82c449fd04764b25 /arch/m68k/lib | |
parent | 34fa9b2177a2abec05ae5976eaadbcce648a0982 (diff) |
m68k: fix ColdFire node shift size calculation
The m68k pg_data_table is a fix size array defined in arch/m68k/mm/init.c.
Index numbers within it are defined based on memory size. But for Coldfire
these don't take into account a non-zero physical RAM base address, and this
causes us to access past the end of this array at system start time.
Change the node shift calculation so that we keep the index inside its range.
Reported-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/lib')
0 files changed, 0 insertions, 0 deletions