Re: [PATCH 2/2] check if crashk_res_low exists when exclude it from crash mem ranges

2014-08-12 Thread Vivek Goyal
On Tue, Aug 12, 2014 at 01:29:28PM +0800, Baoquan He wrote: > Add a check if crashk_res_low exists just like GART region does. If > crashk_res_low doesn't exist, calling exclude_mem_range is unnecessary. > > Meanwhile, since crashk_res_low has been initialized at definition, it's > safe just use "

[PATCH 2/2] check if crashk_res_low exists when exclude it from crash mem ranges

2014-08-11 Thread Baoquan He
Add a check if crashk_res_low exists just like GART region does. If crashk_res_low doesn't exist, calling exclude_mem_range is unnecessary. Meanwhile, since crashk_res_low has been initialized at definition, it's safe just use "if (crashk_low_res.end)" to check if it's exist. And this can make it