066-mcfv4e_endmem_fix.patch 699 B

12345678910111213141516171819202122
  1. From 601145f682eab66abca5d154a8a9fdf275acd8ba Mon Sep 17 00:00:00 2001
  2. From: Kurt Mahan <[email protected]>
  3. Date: Tue, 24 Jun 2008 22:20:31 -0600
  4. Subject: [PATCH] Fix off by 1 error with endmem.
  5. LTIBName: mcfv4e-endmem-fix
  6. Signed-off-by: Kurt Mahan <[email protected]>
  7. ---
  8. arch/m68k/coldfire/config.c | 2 +-
  9. 1 files changed, 1 insertions(+), 1 deletions(-)
  10. --- a/arch/m68k/coldfire/config.c
  11. +++ b/arch/m68k/coldfire/config.c
  12. @@ -449,7 +449,7 @@ void __init config_coldfire(void)
  13. /* mach_hwclk = coldfire_hwclk; to be done */
  14. mach_get_model = coldfire_get_model;
  15. - coldfire_bootmem_alloc(startmem, endmem);
  16. + coldfire_bootmem_alloc(startmem, endmem-1);
  17. /*
  18. * initrd setup