diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2023-05-27 20:34:36 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-09 17:44:23 -0700 |
commit | f7f567b95b12eda7a6a273b8cb82d152491bc0da (patch) | |
tree | 3b4e73ef30990adbf6d8f347f223ab2fa392be95 /rust/macros | |
parent | 6f22a744f4ee7a22be4704cf93bbe22decc7e79e (diff) | |
download | linux-stable-f7f567b95b12eda7a6a273b8cb82d152491bc0da.tar.gz linux-stable-f7f567b95b12eda7a6a273b8cb82d152491bc0da.tar.bz2 linux-stable-f7f567b95b12eda7a6a273b8cb82d152491bc0da.zip |
kexec: clear crashk_res if all its memory has been released
If the resource of crashk_res has been released, it is better to clear
crashk_res.start and crashk_res.end. Because 'end = start - 1' is not
reasonable, and in some places the test is based on crashk_res.end, not
resource_size(&crashk_res).
Link: https://lkml.kernel.org/r/20230527123439.772-4-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Cong Wang <amwang@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust/macros')
0 files changed, 0 insertions, 0 deletions