mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-30 13:34:53 +02:00
linux: boottime api: Fix explicit returns mixed with implicit (fall through) returns
This commit is contained in:
@@ -424,7 +424,7 @@ class task_struct(generic.GenericIntelProcess):
|
||||
time_ns = self.get_time_namespace()
|
||||
if not time_ns:
|
||||
# kernels < 5.6
|
||||
return
|
||||
return None
|
||||
|
||||
# We are good. ns_common (ns) was introduced in kernels 3.19. So by the time the
|
||||
# time namespace was added in kernels 5.6, it already included the ns member.
|
||||
@@ -437,7 +437,7 @@ class task_struct(generic.GenericIntelProcess):
|
||||
time_ns = self.get_time_namespace()
|
||||
if not time_ns:
|
||||
# kernels < 5.6
|
||||
return
|
||||
return None
|
||||
|
||||
if not time_ns.has_member("offsets"):
|
||||
# kernels < 5.6 af993f58d69ee9c1f421dfc87c3ed231c113989c
|
||||
|
||||
Reference in New Issue
Block a user