Fix the using of the uninitialized value
This commit is contained in:
parent
0ad8c1cd08
commit
ea09aba17c
26
0013-fix-the-using-of-the-uninitialized-value.patch
Normal file
26
0013-fix-the-using-of-the-uninitialized-value.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 119eb590f5f0b89611d46cdec805b22767f8a6c0 Mon Sep 17 00:00:00 2001
|
||||
From: Pingfan Liu <piliu@redhat.com>
|
||||
Date: Wed, 17 Apr 2024 10:36:34 +0800
|
||||
Subject: [PATCH] numademo: Fix the using of the uninitialized value
|
||||
|
||||
Signed-off-by: Pingfan Liu <piliu@redhat.com>
|
||||
---
|
||||
numademo.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/numademo.c b/numademo.c
|
||||
index 374afd3..8886d7f 100644
|
||||
--- a/numademo.c
|
||||
+++ b/numademo.c
|
||||
@@ -248,6 +248,8 @@ static void memtest(char *name, unsigned char *mem)
|
||||
|
||||
#endif
|
||||
default:
|
||||
+ gettimeofday(&start,NULL);
|
||||
+ gettimeofday(&end,NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: numactl
|
||||
Version: 2.0.16
|
||||
Release: 10
|
||||
Release: 11
|
||||
Summary: Library for tuning for Non Uniform Memory Access machines
|
||||
License: GPLv2
|
||||
URL: https://github.com/numactl/numactl
|
||||
@ -19,6 +19,7 @@ Patch0009: 0009-riscv64-remove-flag-latomic.patch
|
||||
Patch0010: 0010-fix-fix-memory-leaks-when-run-with-H.patch
|
||||
Patch0011: 0011-libnuma-Fix-unexpected-output.patch
|
||||
Patch0012: 0012-libnuma-Fix-incorrect-print-and-exit-of-numa_preferr.patch
|
||||
Patch0013: 0013-fix-the-using-of-the-uninitialized-value.patch
|
||||
|
||||
%description
|
||||
Simple NUMA policy support. It consists of a numactl program to run other
|
||||
@ -87,6 +88,9 @@ LD_LIBRARY_PATH=$(pwd)/.libs make check
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Tue Jul 2 2024 zhangyaqi <zhangyaqi@kylinos.cn> - 2.0.16-11
|
||||
- numademo: Fix the using of the uninitialized value
|
||||
|
||||
* Tue Apr 16 2024 zhangnaichuan <zhangnaichuan@huawei.com> - 2.0.16-10
|
||||
- libnuma: Fix incorrect print and exit of numa_preferred/_many APIs
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user