qcacmn: Use default seek for athdiag lseek

Kernel change d4455fa ''proc: mandate ->proc_lseek in "struct proc_ops"'
by default use proc_lseek for file operations, so add default_llseek
for athdiag ops to avoid crash.

Change-Id: I9a36193f8eab44dd619e0c51ccc1f145969027eb
CRs-Fixed: 3197004
这个提交包含在:
Kai Liu
2022-05-15 20:29:04 +08:00
提交者 Madan Koyyalamudi
父节点 cdbc3c0f76
当前提交 15162bf6bd

查看文件

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2013-2014, 2016-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-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
@@ -543,6 +543,7 @@ static ssize_t ath_procfs_diag_write(struct file *file,
static const struct proc_ops athdiag_fops = {
.proc_read = ath_procfs_diag_read,
.proc_write = ath_procfs_diag_write,
.proc_lseek = default_llseek,
};
#else
static const struct file_operations athdiag_fops = {