vfs_inode is not being used nor required

This commit is contained in:
Gustavo Moreira
2021-12-21 15:52:22 +11:00
parent fe105dc4a7
commit 8f8e04da97
@@ -416,8 +416,7 @@ class Sockstat(plugins.PluginInterface):
socket_alloc = linux.LinuxUtilities.container_of(d_inode, "socket_alloc", "vfs_inode", vmlinux)
socket = socket_alloc.socket
vfs_inode = socket_alloc.vfs_inode
if not (socket and vfs_inode):
if not (socket and socket.sk):
continue
sock = socket.sk.dereference()