Create a list_head to fix tty_check bug

This commit casts `tty_driver` to a `list_head` to fix an
AttributeError in the linux tty_check plugin
This commit is contained in:
Frank Gomulka
2021-06-22 10:43:31 -04:00
parent b6165b439f
commit dbae5d353d
@@ -41,7 +41,7 @@ class tty_check(plugins.PluginInterface):
self.config['vmlinux'], modules)
try:
tty_drivers = vmlinux.object_from_symbol("tty_drivers")
tty_drivers = vmlinux.object_from_symbol("tty_drivers").cast("list_head")
except exceptions.SymbolError:
tty_drivers = None