From 915314d6cbde7dabdcacc96c253f82e7fdcc952d Mon Sep 17 00:00:00 2001 From: YangXin <245051644@qq.com> Date: Tue, 23 Aug 2022 14:54:22 +0800 Subject: [PATCH] Fix the conditions that rsp->len are judged to be invalid. Signed-off-by: YangXin <245051644@qq.com> --- ...ns-that-rsp-len-are-judged-to-be-inv.patch | 26 +++++++++++++++++++ dpu-utilities.spec | 4 +-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 0001-fix-the-conditions-that-rsp-len-are-judged-to-be-inv.patch diff --git a/0001-fix-the-conditions-that-rsp-len-are-judged-to-be-inv.patch b/0001-fix-the-conditions-that-rsp-len-are-judged-to-be-inv.patch new file mode 100644 index 0000000..42f3590 --- /dev/null +++ b/0001-fix-the-conditions-that-rsp-len-are-judged-to-be-inv.patch @@ -0,0 +1,26 @@ +From a29781cb4652814da50ce7208ac9db41d1656424 Mon Sep 17 00:00:00 2001 +From: liqiang +Date: Tue, 23 Aug 2022 14:28:22 +0800 +Subject: [PATCH] fix the conditions that rsp->len are judged to be invalid. + +Signed-off-by: liqiang +--- + qtfs/qtfs_server/fsops.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/qtfs/qtfs_server/fsops.c b/qtfs/qtfs_server/fsops.c +index 7fc5aa2..7cee08f 100644 +--- a/qtfs/qtfs_server/fsops.c ++++ b/qtfs/qtfs_server/fsops.c +@@ -1041,7 +1041,7 @@ int qtfs_sock_server_run(struct qtfs_sock_var_s *pvar) + totalproc++; + qtinfo_recvinc(req->type); + } +- if (rsp->len >= QTFS_REQ_MAX_LEN) { ++ if (rsp->len > QTFS_REQ_MAX_LEN) { + qtfs_err("handle rsp len error type:%d len:%lu", rsp->type, rsp->len); + WARN_ON(1); + continue; +-- +2.23.0 + diff --git a/dpu-utilities.spec b/dpu-utilities.spec index 1a09d67..55747ea 100644 --- a/dpu-utilities.spec +++ b/dpu-utilities.spec @@ -1,7 +1,7 @@ Name: dpu-utilities Summary: openEuler dpu utilities Version: 1.0 -Release: 2 +Release: 3 License: GPL-2.0 Source: %{name}-%{version}.tar.gz ExclusiveOS: linux @@ -11,7 +11,7 @@ Conflicts: %{name} < %{version}-%{release} Provides: %{name} = %{version}-%{release} %define kernel_version %(ver=`rpm -qa|grep kernel-devel`;echo ${ver#*kernel-devel-}) BuildRequires: kernel-devel >= 5.10, gcc, make - +Patch0001: 0001-fix-the-conditions-that-rsp-len-are-judged-to-be-inv.patch %description -- Gitee