diff options
author | Baoquan He <bhe@redhat.com> | 2014-10-14 00:53:42 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 02:18:21 +0200 |
commit | a2d6aa8fa0750fe1d2fc9673d4a46b2fd87e44b3 (patch) | |
tree | 87a101e8d879885b8515eefc338e2e99a105b15e /kernel/locking | |
parent | kexec: take the segment adding out of locate_mem_hole functions (diff) | |
download | linux-a2d6aa8fa0750fe1d2fc9673d4a46b2fd87e44b3.tar.xz linux-a2d6aa8fa0750fe1d2fc9673d4a46b2fd87e44b3.zip |
kexec: check if crashk_res_low exists when exclude it from crash mem ranges
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 consistent with other places of check.
Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions