Skip to content
Snippets Groups Projects
Commit 3e46a959 authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Gerrit - the friendly Code Review server
Browse files

lrdp-v2: Fix kernel version usage

Condition check must use ramdump.kernel_version and not ramdump.version.
Fix it.

Change-Id: Ic7969be9473671fd3f5f0de2eac7a40b50dc82ec
parent 15a2bf85
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def page_buddy(ramdump, page):
def page_count(ramdump, page):
"""Commit: 0139aa7b7fa12ceef095d99dc36606a5b10ab83a
mm: rename _count, field of the struct page, to _refcount"""
if (ramdump.version < (4, 6, 0)):
if (ramdump.kernel_version < (4, 6, 0)):
count = ramdump.read_structure_field(page, 'struct page',
'_count.counter')
else:
......
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