Re: [PATCH] Fix Oops in crash_shrink_memory

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavan Naregundi
Date: Tuesday, June 8, 2010 - 1:40 am

On Tue, 2010-06-08 at 15:59 +0800, Américo Wang wrote:

We get 1 here because, crash_get_memory_size() adds 1 as below, 

size = crashk_res.end - crashk_res.start + 1;

We cant remove this addition, as it is required to display correct size
in case if we reserve the crash memory.

Coming back to issue.. Attaching the patch again.

Signed-off-by: Pavan Naregundi <pavan@linux.vnet.ibm.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
---
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix Oops in crash_shrink_memory, Pavan Naregundi, (Mon Jun 7, 12:28 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Pavan Naregundi, (Tue Jun 8, 12:07 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Américo Wang, (Tue Jun 8, 12:59 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Pavan Naregundi, (Tue Jun 8, 1:40 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Américo Wang, (Tue Jun 8, 1:54 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Pavan Naregundi, (Tue Jun 8, 2:41 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Simon Horman, (Tue Jun 8, 8:44 pm)
Re: [PATCH] Fix Oops in crash_shrink_memory, Pavan Naregundi, (Tue Jun 8, 11:27 pm)
Re: [PATCH] Fix Oops in crash_shrink_memory, Vivek Goyal, (Wed Jun 9, 7:05 am)
Re: [PATCH] Fix Oops in crash_shrink_memory, Andrew Morton, (Thu Jun 10, 2:26 pm)
Re: [PATCH] Fix Oops in crash_shrink_memory, Pavan Naregundi, (Fri Jun 11, 12:30 am)