Merge pull request #1327 from gcmoreira/linux_vfsmount_fix_type_comparison

Linux: vfsmount type: Fix type comparison
This commit is contained in:
ikelos
2024-10-30 15:30:43 +00:00
committed by GitHub
@@ -1299,7 +1299,7 @@ class vfsmount(objects.StructType):
bool: 'True' if the given argument points to the the same 'vfsmount'
as 'self'.
"""
if type(vfsmount_ptr) == objects.Pointer:
if isinstance(vfsmount_ptr, objects.Pointer):
return self.vol.offset == vfsmount_ptr
else:
raise exceptions.VolatilityException(