diff options
Diffstat (limited to 'nvdebug_entry.c')
-rw-r--r-- | nvdebug_entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvdebug_entry.c b/nvdebug_entry.c index 60fb7af..8e8266c 100644 --- a/nvdebug_entry.c +++ b/nvdebug_entry.c | |||
@@ -35,7 +35,7 @@ unsigned int g_nvdebug_devices = 0; | |||
35 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) | 35 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) |
36 | // This rewrites the struct to the proc_ops layout on newer kernels | 36 | // This rewrites the struct to the proc_ops layout on newer kernels |
37 | const struct proc_ops* compat_ops(const struct file_operations* ops) { | 37 | const struct proc_ops* compat_ops(const struct file_operations* ops) { |
38 | struct proc_ops new_ops; | 38 | struct proc_ops new_ops = {}; |
39 | new_ops.proc_open = ops->open; | 39 | new_ops.proc_open = ops->open; |
40 | new_ops.proc_read = ops->read; | 40 | new_ops.proc_read = ops->read; |
41 | new_ops.proc_write = ops->write; | 41 | new_ops.proc_write = ops->write; |