From: Gerald Schaefer Date: Fri, 27 Oct 2006 10:39:13 +0000 (+0200) Subject: [S390] Initialize interval value to 0. X-Git-Tag: v2.6.19-rc4~31^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=95425f19beed99cb9b0a79f69731eda907d9db99;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index 45c9fa7d754..af1e8fc7d98 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c @@ -310,6 +310,7 @@ appldata_interval_handler(ctl_table *ctl, int write, struct file *filp, 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");