aboutsummaryrefslogtreecommitdiffstats
path: root/device_info_procfs.c
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2023-07-03 12:44:32 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2023-07-03 12:44:32 -0400
commit073e8978334a07e0053ee08310743ddf3046d7d2 (patch)
treef73583c3ea3fd3c9416313736a697254bc866fed /device_info_procfs.c
parenta3fe3788535dd099d15e0ddca455be58e1d63156 (diff)
Fix addressing, zero-init, and compatibility bugs in a3fe378
- Including missing dereference to finish getting the address of the control register range - Add zero-initialization to the proc_ops structure in copat_ops to insure that all intentionally unset fields remain unset - Set .llseek in all the file_operations structures, as recent kernels require this to be explictly set
Diffstat (limited to 'device_info_procfs.c')
-rw-r--r--device_info_procfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/device_info_procfs.c b/device_info_procfs.c
index c96007a..1fc0586 100644
--- a/device_info_procfs.c
+++ b/device_info_procfs.c
@@ -24,6 +24,7 @@ static ssize_t nvdebug_reg32_read(struct file *f, char __user *buf, size_t size,
24} 24}
25struct file_operations nvdebug_read_reg32_file_ops = { 25struct file_operations nvdebug_read_reg32_file_ops = {
26 .read = nvdebug_reg32_read, 26 .read = nvdebug_reg32_read,
27 .llseek = default_llseek,
27}; 28};
28 29
29//// ==v== PTOP_DEVICE_INFO ==v== //// 30//// ==v== PTOP_DEVICE_INFO ==v== ////