Mac: Fix bug found by buildbot/npetroni due refactoring

This commit is contained in:
Mike Auty
2022-11-02 20:53:00 +00:00
parent c3b7e9229c
commit aa0c2b6c74
@@ -28,8 +28,11 @@ class proc(generic.GenericIntelProcess):
if not isinstance(parent_layer, interfaces.layers.TranslationLayerInterface):
raise TypeError("Parent layer is not a translation layer, unable to construct process layer")
with contextlib.suppress(exceptions.InvalidAddressException):
try:
dtb = self.get_task().map.pmap.pm_cr3
except exceptions.InvalidAddressException:
# Bail out because we couldn't find the DTB
return None
if preferred_name is None:
preferred_name = self.vol.layer_name + f"_Process{self.p_pid}"