From 073e8978334a07e0053ee08310743ddf3046d7d2 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 3 Jul 2023 12:44:32 -0400 Subject: 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 --- device_info_procfs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'device_info_procfs.c') 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, } struct file_operations nvdebug_read_reg32_file_ops = { .read = nvdebug_reg32_read, + .llseek = default_llseek, }; //// ==v== PTOP_DEVICE_INFO ==v== //// -- cgit v1.2.2