[Devel] [PATCH RHEL7 COMMIT] ms/dynamic debug: line queries failing due to uninitialized local variable
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jun 16 14:01:18 MSK 2020
The commit is pushed to "branch-rh7-3.10.0-1127.10.1.vz7.162.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1127.10.1.vz7.162.3
------>
commit de3dd27a39299f19100f521ef5b7452a084e50f1
Author: jbaron at akamai.com <jbaron at akamai.com>
Date: Tue Aug 27 16:50:03 2013 +0000
ms/dynamic debug: line queries failing due to uninitialized local variable
Settings of the form, 'line x module y +p', can fail arbitrarily due to an
uninitialized local variable. With this patch results are consistent, as
expected.
Signed-off-by: Jason Baron <jbaron at akamai.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
https://jira.sw.ru/browse/PSBM-104590
(cherry picked from commit bd8c154a62d47b0ec2abf87e35dccf081781d81c)
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
lib/dynamic_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 802fd17faeff8..8726224a08125 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -314,7 +314,7 @@ static int ddebug_parse_query(char *words[], int nwords,
struct ddebug_query *query, const char *modname)
{
unsigned int i;
- int rc;
+ int rc = 0;
/* check we have an even number of words */
if (nwords % 2 != 0) {
More information about the Devel
mailing list