On 29/10/25 19:33, Jiri Bohac wrote:
On Fri, Oct 24, 2025 at 10:31:18PM +0530, Sourabh Jain wrote:+static int crash_exclude_mem_range_guarded(struct crash_mem **mem_ranges, + unsigned long long mstart, + unsigned long long mend) +{ + struct crash_mem *tmem = *mem_ranges; + + /* Reallocate memory ranges if there is no space to split ranges */ + tmem = *mem_ranges;repeated initialization
Will remove it in next verison.
+ if (tmem && (tmem->nr_ranges == tmem->max_nr_ranges)) { + tmem = realloc_mem_ranges(mem_ranges); + if (!tmem) + return -ENOMEM; + } + + return crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end);mstart and mend, not crashk_res.start and crashk_res.end
Yup my bad. I will fix it. Thanks for the review. - Sourabh Jain
