From c1dc36a3276534cb1dc1f61337fa62eef89466e1 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 2 Sep 2018 18:27:28 +0100 Subject: [PATCH] Fix up the breakage from the preivous commit. --- volatility/framework/automagic/linux.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/volatility/framework/automagic/linux.py b/volatility/framework/automagic/linux.py index 06a08ecd9..b75c97637 100644 --- a/volatility/framework/automagic/linux.py +++ b/volatility/framework/automagic/linux.py @@ -110,7 +110,7 @@ class LintelStacker(interfaces.automagic.StackerLayerInterface): -> typing.Optional[interfaces.layers.DataLayerInterface]: """Attempts to identify linux within this layer""" # Bail out by default unless we can stack properly - layer = None + layer = context.memory[layer_name] join = interfaces.configuration.path_join dtb = None @@ -148,10 +148,10 @@ class LintelStacker(interfaces.automagic.StackerLayerInterface): layer = layer_class(context, config_path = config_path, name = new_layer_name) - if layer: + if layer and dtb: vollog.debug("DTB was found at: 0x{:0x}".format(dtb)) - break - return layer + return layer + return None class LinuxUtilities(object):