Skip to content
Snippets Groups Projects
Commit 09e73311 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp-v2: Fix a use-before-init of mem_section"

parents b5a9215e c414a739
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012,2014-2015,2017-2018 The Linux Foundation. All rights reserved.
# Copyright (c) 2012,2014-2015,2017-2019 The Linux Foundation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
......@@ -206,6 +206,7 @@ class PageTracking(RamParser):
print_out_str('CONFIG_PAGE_OWNER_ENABLE_DEFAULT not defined')
return
mem_section = None
if (self.ramdump.kernel_version >= (3, 19, 0)):
if self.ramdump.is_config_defined('CONFIG_SPARSEMEM'):
mem_section = self.ramdump.read_word('mem_section')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment