* [S390] Initialize interval value to 0.
@ 2006-10-26 9:01 Martin Schwidefsky
0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2006-10-26 9:01 UTC (permalink / raw)
To: linux-kernel, geraldsc
From: Gerald Schaefer <geraldsc@de.ibm.com>
[S390] Initialize interval value to 0.
sscanf() could leave the interval value unchanged in which case it
would be used uninitialized.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
arch/s390/appldata/appldata_base.c | 1 +
1 files changed, 1 insertion(+)
diff -urpN linux-2.6/arch/s390/appldata/appldata_base.c linux-2.6-patched/arch/s390/appldata/appldata_base.c
--- linux-2.6/arch/s390/appldata/appldata_base.c 2006-10-26 10:43:38.000000000 +0200
+++ linux-2.6-patched/arch/s390/appldata/appldata_base.c 2006-10-26 10:44:01.000000000 +0200
@@ -310,6 +310,7 @@ appldata_interval_handler(ctl_table *ctl
if (copy_from_user(buf, buffer, len > sizeof(buf) ? sizeof(buf) : len)) {
return -EFAULT;
}
+ interval = 0;
sscanf(buf, "%i", &interval);
if (interval <= 0) {
P_ERROR("Timer CPU interval has to be > 0!\n");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-26 9:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-26 9:01 [S390] Initialize interval value to 0 Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox