Skip to content

Commit 6414c66

Browse files
authored
Merge pull request #1327 from gcmoreira/linux_vfsmount_fix_type_comparison
Linux: vfsmount type: Fix type comparison
2 parents a196140 + 84a2233 commit 6414c66

File tree

1 file changed

+1
-1
lines changed
  • volatility3/framework/symbols/linux/extensions

1 file changed

+1
-1
lines changed

volatility3/framework/symbols/linux/extensions/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ def is_equal(self, vfsmount_ptr) -> bool:
12991299
bool: 'True' if the given argument points to the the same 'vfsmount'
13001300
as 'self'.
13011301
"""
1302-
if type(vfsmount_ptr) == objects.Pointer:
1302+
if isinstance(vfsmount_ptr, objects.Pointer):
13031303
return self.vol.offset == vfsmount_ptr
13041304
else:
13051305
raise exceptions.VolatilityException(

0 commit comments

Comments
 (0)