Sfoglia il codice sorgente

qcacld-3.0: Use default seek for memdump lseek

Kernel change d4455fa 'proc: mandate ->proc_lseek in "struct proc_ops"'
by default use proc_lseek for file operations without any check, so add
default_llseek for all proc ops.

Change-Id: Ia72839cf09ec721fb98f50793b19ec082478d8d7
CRs-Fixed: 3201012
Kai Liu 2 anni fa
parent
commit
962ad87f7f
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      core/hdd/src/wlan_hdd_memdump.c

+ 2 - 0
core/hdd/src/wlan_hdd_memdump.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -204,6 +205,7 @@ static ssize_t hdd_driver_memdump_read(struct file *file, char __user *buf,
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0))
 static const struct proc_ops driver_dump_fops = {
 	.proc_read = hdd_driver_memdump_read,
+	.proc_lseek = default_llseek,
 };
 #else
 static const struct file_operations driver_dump_fops = {