代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/dim 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 76d06390a9adf3ae70aaa87e9243c42d848975a4 Mon Sep 17 00:00:00 2001
From: Huaxin Lu <luhuaxin1@huawei.com>
Date: Mon, 18 Sep 2023 20:19:05 +0800
Subject: [PATCH] Add the owner of file operations
Fix the concurrent issues with removing module and
accessing interfaces.
---
src/common/dim_entry.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/common/dim_entry.h b/src/common/dim_entry.h
index 17e6420..acfc3a0 100644
--- a/src/common/dim_entry.h
+++ b/src/common/dim_entry.h
@@ -49,6 +49,7 @@ static ssize_t sname##_trigger(struct file *file, \
} \
\
static const struct file_operations sname##_ops = { \
+ .owner = THIS_MODULE, \
.write = sname##_trigger, \
.llseek = generic_file_llseek, \
}; \
@@ -99,6 +100,7 @@ static int sname##_open(struct inode *inode, struct file *file) \
} \
\
static const struct file_operations sname##_ops = { \
+ .owner = THIS_MODULE, \
.open = sname##_open, \
.read = seq_read, \
.llseek = seq_lseek, \
@@ -129,6 +131,7 @@ static ssize_t sname##_read(struct file *file, \
} \
\
static const struct file_operations sname##_ops = { \
+ .owner = THIS_MODULE, \
.read = sname##_read, \
.llseek = generic_file_llseek, \
}; \
@@ -173,6 +176,7 @@ static ssize_t sname##_write(struct file *file, \
} \
\
static const struct file_operations sname##_ops = { \
+ .owner = THIS_MODULE, \
.read = sname##_read, \
.write = sname##_write, \
.llseek = generic_file_llseek, \
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。