s390utils/0071-cpuplugd-Fix-incorrect-multiplication-in-rules-evalu.patch
Dan Horák c46bddaf55 updated ccw udev rules
converted cio_free_device from an upstart job to systemd unit (jstodola)
mon_statd: switch to using udevadm settle (#688140)
cpuplugd: Fix incorrect multiplication in rules evaluation (#693365)
cmsfs-fuse: Delete old file if renaming to an existing file (#690505)
cmsfs-fuse: Enlarge fsname string (#690506)
cmsfs-fuse: Unable to use cmsfs-fuse if $HOME is not set (#690514)
hyptop: Prevent interactive mode on s390 line mode terminals (#690810)
2011-04-27 10:41:28 +02:00

29 lines
992 B
Diff

From 07e1c6ff7f6deb2c35c436c5d5def61e6aac32ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
Date: Tue, 5 Apr 2011 14:52:24 +0200
Subject: [PATCH] cpuplugd: Fix incorrect multiplication in rules evaluation
Description: cpuplugd: Fix incorrect multiplication in rules evaluation
Symptom: Rules don't evaluate correctly when multiplication (*) is used.
Problem: Missing return statement in switch/case block.
Solution: Add return statement.
---
cpuplugd/terms.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cpuplugd/terms.c b/cpuplugd/terms.c
index 0d08e9e..2371efa 100644
--- a/cpuplugd/terms.c
+++ b/cpuplugd/terms.c
@@ -339,6 +339,7 @@ static double eval_double(struct term *fn, struct symbols *symbols)
a = eval_double(fn->left, symbols);
b = eval_double(fn->right, symbols);
sum = a*b;
+ return sum;
/*return eval_double(fn->left, symbols) *
eval_double(fn->right, symbols);*/
case OP_DIV:
--
1.7.4